tweaks: enforce the miminum amount of scrolling in a simpler way
This improves the fix for https://savannah.gnu.org/bugs/?56317.master
parent
0cbf1f4027
commit
a9e8f88e77
|
@ -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. */
|
||||||
|
|
Loading…
Reference in New Issue