Ejemplo n.º 1
0
    def on_done(self, s):
        state = VintageState(self.view)
        state.motion = 'vi_question_mark'

        state.user_input = s
        # Equivalent to ?<CR>, which must repeat the last search.
        if s == '':
            state.user_input = state.last_buffer_search

        if s != '':
            state.last_buffer_search = s
        state.eval()
Ejemplo n.º 2
0
    def on_done(self, s):
        self.view.erase_regions('vi_inc_search')
        state = VintageState(self.view)
        state.motion = 'vi_question_mark'

        state.user_input = s
        # Equivalent to ?<CR>, which must repeat the last search.
        if s == '':
            state.user_input = state.last_buffer_search

        if s != '':
            state.last_buffer_search = s
        state.eval()
Ejemplo n.º 3
0
    def on_done(self, s):
        self.view.erase_regions("vi_inc_search")
        state = VintageState(self.view)
        state.motion = "vi_question_mark"

        state.user_input = s
        # Equivalent to ?<CR>, which must repeat the last search.
        if s == "":
            state.user_input = state.last_buffer_search

        if s != "":
            state.last_buffer_search = s
        state.eval()
Ejemplo n.º 4
0
    def on_done(self, s):
        self.view.erase_regions('vi_inc_search')
        state = VintageState(self.view)
        state.motion = 'vi_forward_slash'

        state.user_input = s
        # Equivalent to /<CR>, which must repeat the last search.
        if s == '':
            state.user_input = state.last_buffer_search

        if s != '':
            state.last_buffer_search = s
        state.eval()