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()
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()
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()
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()