Skip to content

Commit

Permalink
Merge pull request #306 from Minion3665/bugfix/271/do-not-execute-Ctr…
Browse files Browse the repository at this point in the history
…lSpaceWinrestcmd

bugfix: Stop executing t:CtrlSpaceWinrestcmd in NeoVim
  • Loading branch information
Konfekt committed Oct 30, 2022
2 parents 10e49a2 + a3cedca commit 5e444c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autoload/ctrlspace/window.vim
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ endfunction
function! ctrlspace#window#GoToStartWindow() abort
silent! exe t:CtrlSpaceStartWindow . "wincmd w"

if winrestcmd() != t:CtrlSpaceWinrestcmd
if winrestcmd() != t:CtrlSpaceWinrestcmd && !has('nvim')
silent! exe t:CtrlSpaceWinrestcmd
endif

if winrestcmd() != t:CtrlSpaceWinrestcmd
wincmd =
endif
if winrestcmd() != t:CtrlSpaceWinrestcmd
wincmd =
endif
endfunction

Expand Down

0 comments on commit 5e444c6

Please sign in to comment.