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 f8f33ed commit 9ec2d61Copy full SHA for 9ec2d61
plugin/vimux.vim
@@ -194,11 +194,17 @@ function! _VimuxLastIndex()
194
call _VimuxTmux("last-pane")
195
196
if currentID != lastID
197
- return lastID
198
- else
199
- return -1
+ if _VimuxRunnerType() == "window"
+ return lastID
+ elseif _VimuxRunnerType() == "pane"
200
+ if split(currentID, "\\.")[0] == split(lastID, "\\.")[0]
201
202
+ endif
203
204
endif
205
206
+ return -1
207
+
208
endfunction
209
210
function! _VimuxRunnerType()
0 commit comments