Skip to content

Commit 533a98f

Browse files
committed
Fix accidental global
1 parent feb3161 commit 533a98f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ftplugin/railslog.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ if exists('+concealcursor')
3030
setlocal concealcursor=nc conceallevel=2
3131
let b:undo_ftplugin .= ' concealcursor< conceallevel<'
3232
else
33-
let pos = getpos('.')
33+
let s:pos = getpos('.')
3434
setlocal modifiable
3535
silent exe '%s/\m\C\%(\e\[[0-9;]*m\|\r$\)//e' . (&gdefault ? '' : 'g')
36-
call setpos('.', pos)
36+
call setpos('.', s:pos)
3737
endif
3838
setlocal readonly nomodifiable
3939
let b:undo_ftplugin .= ' noreadonly modifiable'

0 commit comments

Comments
 (0)