From 50065bd97e268820812c9da4bc773cb474a09eed Mon Sep 17 00:00:00 2001 From: Mike Foley Date: Mon, 28 Apr 2014 12:05:11 -0700 Subject: [PATCH] Be case-sensitive when checking for line changes --- plugin/greplace.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/greplace.vim b/plugin/greplace.vim index 88ce5e0..ac5c3eb 100755 --- a/plugin/greplace.vim +++ b/plugin/greplace.vim @@ -65,7 +65,7 @@ function! s:gReplace() let text = match_l[3] let key = fname . ':' . lnum - if s:save_qf_list[key].text == text + if s:save_qf_list[key].text ==# text " This line is not changed continue endif @@ -101,13 +101,13 @@ function! s:gReplace() let new_ltext = f_l[lnum] let s_idx =0 - while cur_ltext[s_idx] == new_ltext[s_idx] + while cur_ltext[s_idx] ==# new_ltext[s_idx] let s_idx += 1 endwhile let e_idx1 = strlen(cur_ltext) - 1 let e_idx2 = strlen(new_ltext) - 1 - while e_idx1 >= 0 && cur_ltext[e_idx1] == new_ltext[e_idx2] + while e_idx1 >= 0 && cur_ltext[e_idx1] ==# new_ltext[e_idx2] let e_idx1 -= 1 let e_idx2 -= 1 endwhile