Skip to content

Commit

Permalink
fix #188: nunmap if only mapping exists
Browse files Browse the repository at this point in the history
  • Loading branch information
kbwo committed Oct 25, 2023
1 parent 724bd53 commit b295c98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autoload/vm/ecmds2.vim
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ fun! s:Edit.surround() abort
endif
endif

nunmap <buffer> S
if mapcheck('<buffer> S', 'n')
nunmap <buffer> S
endif

call self.run_visual('S'.c, 1)
if index(['[', '{', '('], c) >= 0
Expand Down

0 comments on commit b295c98

Please sign in to comment.