Skip to content

Commit a5fd24a

Browse files
author
Stanislas Polu
committed
Merge pull request spolu#47 from n4kz/master
Use `wincmd w` for <C-Space> called from master window
2 parents 0c84b6a + cba4bc6 commit a5fd24a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/dwm.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ endfunction
7676

7777
" Move the current window to the master pane (the previous master window is
7878
" added to the top of the stack). If current window is master already - switch
79-
" back to previous
79+
" to stack top
8080
function! DWM_Focus()
8181
if winnr('$') == 1
8282
return
8383
endif
8484

8585
if winnr() == 1
86-
wincmd p
86+
wincmd w
8787
endif
8888

8989
let l:curwin = winnr()

0 commit comments

Comments
 (0)