use a flag instead (just as messy?)
- --enable-tiny now leaves out the Auto Indent code, do you really
need that on a bootdisk? =-)
+- nano.c:
+ main()
+ - Added vars oldcurrent and oldcurrent_x to check whether cursor
+ pos has changed and if so update the pos with -c.
- nano.texi:
- corrected the Mouse Toggle section, noticed by Daniel Bonniot.
- winio.c:
edit_refresh();
}
#endif
- SET(DISABLE_CURPOS);
return 1;
}
statusbar("%s %s", toggles[which].desc, enabled);
}
- SET(DISABLE_CURPOS);
-
#endif
}
int keyhandled; /* Have we handled the keystroke yet? */
int i, modify_control_seq;
char *argv0;
+ filestruct *oldcurrent; /* Check to constantly update */
+ int oldcurrent_x; /* Same */
+
#ifdef _POSIX_VDISABLE
struct termios term;
#endif
reset_cursor();
while (1) {
+ oldcurrent = current;
+ oldcurrent_x = current_x;
#ifndef DISABLE_MOUSE
currshortcut = main_list;
}
do_char(kbinput);
}
- if (ISSET(CONSTUPDATE)) {
- if (ISSET(DISABLE_CURPOS))
- UNSET(DISABLE_CURPOS);
- else
+ if (ISSET(CONSTUPDATE))
+ if (current != oldcurrent || current_x != oldcurrent_x)
do_cursorpos();
- }
reset_cursor();
wrefresh(edit);