comparison src/testdir/test64.in @ 4557:888c12c899e5 v7.3.1026

updated for version 7.3.1026 Problem: New regexp: pattern that includs a new-line matches too early. (john McGowan) Solution: Do not start searching in the second line.
author Bram Moolenaar <bram@vim.org>
date Sun, 26 May 2013 18:40:14 +0200
parents b2946c06d1b6
children f262fb02889d
comparison
equal deleted inserted replaced
4556:13fff3bf438e 4557:888c12c899e5
370 :.+1,.+2s/""/\='"'.matchstr(getline("."), '\d\+\ze<').'"' 370 :.+1,.+2s/""/\='"'.matchstr(getline("."), '\d\+\ze<').'"'
371 /^Substitute here 371 /^Substitute here
372 :.+1,.+2yank 372 :.+1,.+2yank
373 Gop:" 373 Gop:"
374 :" 374 :"
375 :" Check a pattern with a line break matches in the right position.
376 /^Multiline
377 /\S.*\nx
378 :.yank
379 y$Gop:"
380 :"
375 :" 381 :"
376 :/\%#=1^Results/,$wq! test.out 382 :/\%#=1^Results/,$wq! test.out
377 ENDTEST 383 ENDTEST
378 384
379 Find this: 385 Find this:
381 387
382 Substitute here: 388 Substitute here:
383 <T="">Ta 5</Title> 389 <T="">Ta 5</Title>
384 <T="">Ac 7</Title> 390 <T="">Ac 7</Title>
385 391
392 Multiline:
393 abc
394 def
395 ghi
396 xjk
397 lmn
398
386 Results of test64: 399 Results of test64: