tweaks: enforce the miminum amount of scrolling in a simpler way

This improves the fix for https://savannah.gnu.org/bugs/?56317.
master
Benno Schulenberg 2019-05-16 16:00:42 +02:00
parent 0cbf1f4027
commit a9e8f88e77
1 changed files with 2 additions and 3 deletions

View File

@ -1360,11 +1360,10 @@ void do_toggle(int flag)
signal_init(); signal_init();
break; break;
case SOFTWRAP: case SOFTWRAP:
if (ISSET(SOFTWRAP)) if (!ISSET(SOFTWRAP))
edit_redraw(openfile->current, FLOWING);
else
openfile->firstcolumn = 0; openfile->firstcolumn = 0;
refresh_needed = TRUE; refresh_needed = TRUE;
focusing = FALSE;
break; break;
case WHITESPACE_DISPLAY: case WHITESPACE_DISPLAY:
titlebar(NULL); /* Fall through. */ titlebar(NULL); /* Fall through. */