nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 2b314ed18f18e1daeb604193c330523125da4043
parent 88a0bb968562d285381c007bdd7f276c8d73731c
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 26 Nov 2017 19:50:38 +0100

selecting: let a justification cancel a softmark

Otherwise a second justification will cancel it, which is weird.

Diffstat:
Msrc/text.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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. */