text: turn the mark off when justifying, to not confuse an undo

When leaving the mark on while justifying and then undoing the
justification, things are likely to get messed up.  My applying
David's patches only partially caused this breakage.

This fixes https://savannah.gnu.org/bugs/?55074.
master
Benno Schulenberg 2018-11-25 19:55:20 +01:00
parent 2500debbd2
commit 2c126b201f
1 changed files with 3 additions and 0 deletions

View File

@ -2243,6 +2243,9 @@ void do_justify(bool full_justify)
return;
}
/* We cannot (yet) justify a marked region, so turn the mark off. */
openfile->mark = NULL;
/* Prepare to put the text we want to justify in the cutbuffer. */
cutbuffer = NULL;
cutbottom = NULL;