Browse files

\n triggers multiline mode (fixes tomtom/tlib_vim#12)

  • Loading branch information...
1 parent 48dbc64 commit 8a629a0f8ddb08564e7f515da6451c1dca3ee53b @tomtom committed Jan 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 autoload/ttoc.vim
View
2 autoload/ttoc.vim
@@ -159,7 +159,7 @@ function! ttoc#Collect(world, return_index, ...) "{{{3
let s:rx = a:world.ttoc_rx
let rs = @/
let s:next_line = 1
- let s:multiline = stridx(a:world.ttoc_rx, '\_.') != -1
+ let s:multiline = a:world.ttoc_rx =~ '\\\@<!\\\(_\.\|n\)'
let s:world = a:world
try

0 comments on commit 8a629a0

Please sign in to comment.