Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Enable renaming variables that only differ in case
  • Loading branch information
xolox committed Aug 16, 2010
1 parent fd3920c commit 14b1ff6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autoload.vim
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion luainspect.vim
Expand Up @@ -2,7 +2,7 @@
" Author: Peter Odding <peter@peterodding.com>
" 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.
Expand Down

0 comments on commit 14b1ff6

Please sign in to comment.