mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 19:14:51 +00:00
* src/CutAndPaste.C: white spaces only
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16018 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0777d41fef
commit
d161c23a1c
@ -299,14 +299,13 @@ PitPosPair eraseSelectionHelper(BufferParams const & params,
|
|||||||
// FIXME: Change tracking (MG)
|
// FIXME: Change tracking (MG)
|
||||||
bool const merge = !params.trackChanges ||
|
bool const merge = !params.trackChanges ||
|
||||||
pars[pit].isInserted(pars[pit].size());
|
pars[pit].isInserted(pars[pit].size());
|
||||||
pos_type const left = ( pit == startpit ? startpos : 0 );
|
pos_type const left = (pit == startpit ? startpos : 0);
|
||||||
pos_type const right = ( pit == endpit ? endpos :
|
pos_type const right = (pit == endpit ? endpos : pars[pit].size() + 1);
|
||||||
pars[pit].size() + 1 );
|
|
||||||
// Logical erase only:
|
// Logical erase only:
|
||||||
pars[pit].eraseChars(left, right, false);
|
pars[pit].eraseChars(left, right, false);
|
||||||
// Separate handling of para break:
|
// Separate handling of para break:
|
||||||
if (merge && pit != endpit &&
|
if (merge && pit != endpit &&
|
||||||
(pit + 1 != endpit || pars[pit].hasSameLayout(pars[pit + 1]))) {
|
(pit + 1 != endpit || pars[pit].hasSameLayout(pars[pit + 1]))) {
|
||||||
pos_type const thissize = pars[pit].size();
|
pos_type const thissize = pars[pit].size();
|
||||||
if (doclear)
|
if (doclear)
|
||||||
pars[pit + 1].stripLeadingSpaces();
|
pars[pit + 1].stripLeadingSpaces();
|
||||||
|
Loading…
Reference in New Issue
Block a user