aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-08-17 11:35:59 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-08-17 13:03:13 +0200
commit68eceb80584ff5cca9ea2a6badbbceccb9151730 (patch)
tree82b98940fa1e0895434f72bb9d24b099bea526fa
parentde680775454ac3718637314ceb45be97d64edde4 (diff)
downloadrneovim-68eceb80584ff5cca9ea2a6badbbceccb9151730.tar.gz
rneovim-68eceb80584ff5cca9ea2a6badbbceccb9151730.tar.bz2
rneovim-68eceb80584ff5cca9ea2a6badbbceccb9151730.zip
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 https://github.com/vim/vim/commit/b4d11644254ec6e29aed93a9fdcde2160163aefd Co-authored-by: Damien <141588647+xrandomname@users.noreply.github.com>
-rw-r--r--runtime/autoload/netrw.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim
index 1042585177..c2950aa076 100644
--- a/runtime/autoload/netrw.vim
+++ b/runtime/autoload/netrw.vim
@@ -101,7 +101,7 @@ fun! netrw#ErrorMsg(level,msg,errnum)
endif
" 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
if type(a:msg) == 3
let msg = [level]+a:msg