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 d8167f5 commit ad6abc5Copy full SHA for ad6abc5
plugin/vim-erlang-tags.vim
@@ -90,8 +90,15 @@ endfunction
90
function! s:ExecWithPreviewHeight(cmd, height)
91
let orig_height = &previewheight
92
let &previewheight = a:height
93
- execute a:cmd
94
- let &previewheight = orig_height
+
+ try
95
+ execute a:cmd
96
+ catch /E426/ " tag not found
97
+ pclose " Spurious preview window is left open, close it.
98
+ echohl WarningMsg | echom v:exception | echohl None
99
+ finally
100
+ let &previewheight = orig_height
101
+ endtry
102
endfunction
103
104
function! VimErlangTagsDefineMappings()
0 commit comments