commit a9e8f88e77608ee891bac8d8228f546089fea3e0
parent 0cbf1f4027c9f0993ec8c01c07897d095a4136da
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Thu, 16 May 2019 16:00:42 +0200
tweaks: enforce the miminum amount of scrolling in a simpler way
This improves the fix for https://savannah.gnu.org/bugs/?56317.
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/nano.c b/src/nano.c
@@ -1360,11 +1360,10 @@ void do_toggle(int flag)
signal_init();
break;
case SOFTWRAP:
- if (ISSET(SOFTWRAP))
- edit_redraw(openfile->current, FLOWING);
- else
+ if (!ISSET(SOFTWRAP))
openfile->firstcolumn = 0;
refresh_needed = TRUE;
+ focusing = FALSE;
break;
case WHITESPACE_DISPLAY:
titlebar(NULL); /* Fall through. */