Make :s use more robust
This commit is contained in:
parent
dcecb762b0
commit
b34083549e
@ -2734,7 +2734,7 @@ function! s:BufReadObject() abort
|
|||||||
if getline('.') ==# 'parent '
|
if getline('.') ==# 'parent '
|
||||||
silent keepjumps delete_
|
silent keepjumps delete_
|
||||||
else
|
else
|
||||||
silent keepjumps s/\%(^parent\)\@<! /\rparent /ge
|
silent exe 'keepjumps s/\m\C\%(^parent\)\@<! /\rparent /e' . (&gdefault ? '' : 'g')
|
||||||
endif
|
endif
|
||||||
keepjumps let lnum = search('^encoding \%(<unknown>\)\=$','W',line('.')+3)
|
keepjumps let lnum = search('^encoding \%(<unknown>\)\=$','W',line('.')+3)
|
||||||
if lnum
|
if lnum
|
||||||
|
Loading…
x
Reference in New Issue
Block a user