lyx_mirror/development/autotests/findadv-20-in.txt
Tommaso Cucinotta 604b07c4d1 After replacing with multi-cell contents inside maths, now advanced find and replace leaves the cursor after the inserted material.
Addressing #7675.
Added accompanying regression test.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39282 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-12 15:58:53 +00:00

27 lines
673 B
Plaintext

# Avoiding recursive replacements when replaced text matches search pattern
# Addresses #7675.
#
Lang it_IT.utf8
TestBegin test.lyx -dbg find > lyx-log.txt 2>&1
KK: a a a\C\[Home]
KK: \CF
KK: a\[Tab]
KK: \Cm\\frac 1\[Down]a\[Return]\[Return]\[Return]
KK: \Cs
KK: \Ax
KK: buffer-export latex\[Return]
TestEnd
Assert pcregrep -M '^\$\\frac\{1\}\{a\}\$ \$\\frac\{1\}\{a\}\$ a' test.tex
TestBegin test2.lyx -dbg find > lyx-log.txt 2>&1
KK: \Cma \Cma \Cma \C\[Home]
KK: \CF
KK: a\[Tab]
KK: \Cm\\frac 1\[Down]a\[Return]\[Return]\[Return]
KK: \Cs
KK: \Ax
KK: buffer-export latex\[Return]
TestEnd
Assert pcregrep -M '^\$\\frac\{1\}\{a\}\$ \$\\frac\{1\}\{a\}\$ \$a\$' test2.tex