greplace.vim icon indicating copy to clipboard operation
greplace.vim copied to clipboard

Greplace doesn't recognize changes of case

Open m1foley opened this issue 11 years ago • 1 comments

In my .vimrc:

set ignorecase
set smartcase

My :Gsearch buffer results:

#
# Modify the contents of this buffer and then
# use the ":Greplace" command to merge the changes.
#
foo.html.erb:35:  <p>bar</p>

I change it to:

foo.html.erb:35:  <p>Bar</p>

Typing :Greplace displays this message:

Error: No changes in the replace buffer

It behaves as expected if:

  • I type :set noignorecase, or
  • If another change is made other than changing the case (e.g., adding a space to the end of the line)

I believe Greplace should always be case sensitive when checking for changes in the replace buffer, regardless of the user's ignorecase setting.

m1foley avatar Apr 28 '14 18:04 m1foley

Fixed in the "official" repo: https://github.com/yegappan/greplace/commit/a3b36088c5d6bf08c6c016c10ec5affa22ba41df

m1foley avatar Mar 01 '18 23:03 m1foley