diff --git a/plugin/double-tap.vim b/plugin/double-tap.vim index 3594b61..1b76f2b 100644 --- a/plugin/double-tap.vim +++ b/plugin/double-tap.vim @@ -53,7 +53,7 @@ function! s:Detect_empty_comment() let s:commStart[&ft] = matchstr(&comments, s:pattern) endif let line = getline('.') - if s:commStart[&ft] != '' && line =~ '^\s*'. s:commStart[&ft] . '\s*$' + if s:commStart[&ft] != '' && line =~ '^\s*\V'. s:commStart[&ft] . '\m\s*$' return "\" else return "\"