mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 19:35:37 +00:00
vim-patch:b4d1164: runtime(netrw): Error popup not always used
Problem: g:netrw_use_errorwindow=2 does not work
without +balloon_eval.
Solution: Check for popup_atcursor().
related: vim/vim#15501
b4d1164425
Co-authored-by: Damien <141588647+xrandomname@users.noreply.github.com>
This commit is contained in:
@@ -101,7 +101,7 @@ fun! netrw#ErrorMsg(level,msg,errnum)
|
|||||||
endif
|
endif
|
||||||
" call Decho("level=".level,'~'.expand("<slnum>"))
|
" call Decho("level=".level,'~'.expand("<slnum>"))
|
||||||
|
|
||||||
if g:netrw_use_errorwindow == 2 && (v:version > 802 || (v:version == 802 && has("patch486")))
|
if g:netrw_use_errorwindow == 2 && exists("*popup_atcursor")
|
||||||
" use popup window
|
" use popup window
|
||||||
if type(a:msg) == 3
|
if type(a:msg) == 3
|
||||||
let msg = [level]+a:msg
|
let msg = [level]+a:msg
|
||||||
|
|||||||
Reference in New Issue
Block a user