From 2b314ed18f18e1daeb604193c330523125da4043 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 26 Nov 2017 19:50:38 +0100 Subject: [PATCH] selecting: let a justification cancel a softmark Otherwise a second justification will cancel it, which is weird. --- src/text.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/text.c b/src/text.c index 6b9399ef..638acc7a 100644 --- a/src/text.c +++ b/src/text.c @@ -2439,6 +2439,10 @@ void do_justify(bool full_justify) if (first_par_line != NULL) last_par_line = openfile->current; + /* Let a justification cancel a soft mark. */ + if (openfile->mark && openfile->kind_of_mark == SOFTMARK) + openfile->mark = NULL; + edit_refresh(); /* Show "Unjustify" in the help lines. */