neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 68eceb80584ff5cca9ea2a6badbbceccb9151730
parent de680775454ac3718637314ceb45be97d64edde4
Author: Christian Clason <c.clason@uni-graz.at>
Date:   Sat, 17 Aug 2024 11:35:59 +0200

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>

Diffstat:
Mruntime/autoload/netrw.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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