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();
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. */