Skip to content

Commit 796437c

Browse files
committed
Don't leave iskeyword mutated in original buffer
1 parent d5ea794 commit 796437c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugin/vim-erlang-tags.vim

+3-1
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ command! ErlangTags call VimErlangTags()
5555
function! s:GoToErlangTag(cmd)
5656
let orig_isk = &isk
5757
set isk+=:,#,?
58-
execute a:cmd expand('<cword>')
58+
let ident = expand('<cword>')
5959
let &isk = orig_isk
60+
61+
execute a:cmd ident
6062
endfunction
6163

6264
function! VimErlangTagsDefineMappings()

0 commit comments

Comments
 (0)