bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vim's :Global command resets buffer


From: Andrey Butirsky
Subject: Re: vim's :Global command resets buffer
Date: Sun, 28 Apr 2019 00:43:47 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:67.0) Gecko/20100101 Thunderbird/67.0

On 4/28/19 12:18 AM, Andrey Butirsky wrote:
Hello,

just found strange behavior of gtags.vim:

:Global command in Vim discards all unsaved changes in current buffer, if the command finds results and jumps to them

The fix:

--- /home/bam/.vim/plugin/gtags.vim.orig        2019-01-30 06:18:56.000000000 +0300
+++ /home/bam/.vim/plugin/gtags.vim     2019-04-28 00:37:21.298901871 +0300
@@ -479,7 +473,7 @@
     elseif g:Gtags_No_Auto_Jump == 1
         cgete l:result         " does not jump
     else
-        cexpr! l:result                " jump
+        cexpr l:result         " jump
     endif
     let &efm = l:efm_org
 endfunction


reply via email to

[Prev in Thread] Current Thread [Next in Thread]