From 14b1ff64e29b6333d492a9fc8dfddb0427ee449e Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Mon, 16 Aug 2010 19:27:28 +0200 Subject: [PATCH] Enable renaming variables that only differ in case --- autoload.vim | 2 +- luainspect.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload.vim b/autoload.vim index 9c6b601..3fe222a 100644 --- a/autoload.vim +++ b/autoload.vim @@ -253,7 +253,7 @@ function! s:rename_variable() " {{{1 " Clear highlighting of occurrences. call map(highlights, 'matchdelete(v:val)') " Perform rename? - if newname != '' && newname != oldname + if newname != '' && newname !=# oldname let num_renamed = 0 for fields in reverse(b:luainspect_output[1:-1]) let [linenum, firstcol, lastcol] = split(fields) diff --git a/luainspect.vim b/luainspect.vim index b7fc0ce..c0f5305 100644 --- a/luainspect.vim +++ b/luainspect.vim @@ -2,7 +2,7 @@ " Author: Peter Odding " Last Change: August 16, 2010 " URL: http://peterodding.com/code/vim/lua-inspect/ -" Version: 0.4.2 +" Version: 0.4.3 " License: MIT " Support for automatic update using the GLVS plug-in.