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.