mirror of
https://github.com/vim/vim.git
synced 2025-09-03 21:23:48 -04:00
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: #15501 Signed-off-by: Damien <141588647+xrandomname@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
7c754110ff
commit
b4d1164425
@ -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
|
||||||
@ -231,7 +231,10 @@ let g:netrw_localmovecmdopt = ""
|
|||||||
|
|
||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
" Default values for netrw's global protocol variables {{{2
|
" Default values for netrw's global protocol variables {{{2
|
||||||
if (v:version > 802 || (v:version == 802 && has("patch486"))) && has("balloon_eval") && !exists("s:initbeval") && !exists("g:netrw_nobeval") && has("syntax") && exists("g:syntax_on") && has("mouse")
|
if exists("*popup_atcursor")
|
||||||
|
\ && has("syntax")
|
||||||
|
\ && exists("g:syntax_on")
|
||||||
|
\ && has("mouse")
|
||||||
call s:NetrwInit("g:netrw_use_errorwindow",2)
|
call s:NetrwInit("g:netrw_use_errorwindow",2)
|
||||||
else
|
else
|
||||||
call s:NetrwInit("g:netrw_use_errorwindow",1)
|
call s:NetrwInit("g:netrw_use_errorwindow",1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user