We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6bda37 commit 573c064Copy full SHA for 573c064
pyvim/editor.py
@@ -191,13 +191,7 @@ def current_editor_buffer(self):
191
"""
192
Return the `EditorBuffer` that is currently active.
193
194
- # For each buffer name on the focus stack.
195
- for current_buffer_name in self.application.buffers.focus_stack:
196
- if current_buffer_name is not None:
197
- # Find/return the EditorBuffer with this name.
198
- for b in self.window_arrangement.editor_buffers:
199
- if b.buffer_name == current_buffer_name:
200
- return b
+ return self.application.current_buffer
201
202
@property
203
def add_key_binding(self):
0 commit comments