Skip to content

Commit

Permalink
remove log "Invalid in command-line window"
Browse files Browse the repository at this point in the history
for example, vim org cmd "q:" or "q/"
  • Loading branch information
zhanghaolong committed May 23, 2021
1 parent ad72976 commit 60e1b3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin/minibufexpl.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2456,7 +2456,10 @@ function! s:SwitchWindow(action, ...)
call <SID>DEBUG('previous window is: '.winnr(),10)
let l:wincmd = l:aucmd.l:winnr.'wincmd '.a:action
call <SID>DEBUG('window switching command is: '.l:wincmd,10)
exec l:wincmd
try
exec l:wincmd
catch /.*/
endtry
call <SID>DEBUG('current window is: '.winnr(),10)

call <SID>DEBUG('Leaving SwitchWindow()',10)
Expand Down

0 comments on commit 60e1b3a

Please sign in to comment.