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 573c064 commit 1928ad2Copy full SHA for 1928ad2
pyvim/editor.py
@@ -191,7 +191,13 @@ def current_editor_buffer(self):
191
"""
192
Return the `EditorBuffer` that is currently active.
193
194
- return self.application.current_buffer
+ # 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
201
202
@property
203
def add_key_binding(self):
0 commit comments