本文整理匯總了Python中Vintageous.state.State.last_buffer_search方法的典型用法代碼示例。如果您正苦於以下問題:Python State.last_buffer_search方法的具體用法?Python State.last_buffer_search怎麽用?Python State.last_buffer_search使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Vintageous.state.State
的用法示例。
在下文中一共展示了State.last_buffer_search方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: run
# 需要導入模塊: from Vintageous.state import State [as 別名]
# 或者: from Vintageous.state.State import last_buffer_search [as 別名]
def run(self, key=None):
state = State(self.window.active_view())
state.motion = cmd_defs[state.mode][cmds.QUESTION_MARK_IMPL]
state.last_buffer_search = state.user_input or state.last_buffer_search
# XXX: Is this right?
if state.input_parsers:
new_parsers = state.input_parsers
new_parsers.pop()
state.input_parsers = new_parsers
示例2: run
# 需要導入模塊: from Vintageous.state import State [as 別名]
# 或者: from Vintageous.state.State import last_buffer_search [as 別名]
def run(self, key=None):
state = State(self.window.active_view())
state.motion = cmd_defs.ViSearchBackwardImpl()
state.last_buffer_search = state.motion._inp or state.last_buffer_search