Browse files

Fix detection of #endif

  • Loading branch information...
1 parent 498f566 commit a45d4a6221acbc5ab1e7138980b9bf5074c414f6 @tpope committed Nov 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/endwise.vim
View
2 plugin/endwise.vim
@@ -100,7 +100,7 @@ function! s:crend(always)
let word = matchstr(getline(lnum),beginpat)
let endword = substitute(word,'.*',b:endwise_addition,'')
let y = n.endword."\<C-O>O"
- let endpat = '\<'.endword.'\>'
+ let endpat = '\w\@<!'.endword.'\w\@!'
if a:always
return y
elseif col <= 0 || synIDattr(synID(lnum,col,1),'name') !~ '^'.synpat.'$'

0 comments on commit a45d4a6

Please sign in to comment.