CVS code -
+- General:
+ - Miscellaneous comment fixes. (DLR)
+- nano.c:
+ allow_pending_sigwinch()
+ - Simplify by using the "?" operator instead of an if clause.
+ (DLR)
+ do_verbatim_input()
+ - If constant cursor position display is on when we finish, make
+ sure the cursor position is displayed properly. (DLR)
+ main()
+ - When constant cursor position display is on, only display the
+ cursor position if there are no keys waiting in the buffer.
+ (DLR)
GNU nano 1.3.8 - 2005.06.30
- General:
do_output(output, kbinput_len, TRUE);
free(output);
+
+ /* If constant cursor position display is on, make sure the current
+ * cursor position is properly displayed on the statusbar. */
+ if (ISSET(CONST_UPDATE))
+ do_cursorpos(TRUE);
}
void do_backspace(void)
sigset_t winch;
sigemptyset(&winch);
sigaddset(&winch, SIGWINCH);
- if (allow)
- sigprocmask(SIG_UNBLOCK, &winch, NULL);
- else
- sigprocmask(SIG_BLOCK, &winch, NULL);
+ sigprocmask(allow ? SIG_UNBLOCK : SIG_BLOCK, &winch, NULL);
}
#endif /* !NANO_SMALL */
if (have_shortcut) {
switch (input) {
- /* Handle the "universal" statusbar prompt shortcuts. */
+ /* Handle the "universal" edit window shortcuts. */
case NANO_XON_KEY:
statusbar(_("XON ignored, mumble mumble."));
break;
/* Make sure the cursor is in the edit window. */
reset_cursor();
- /* If constant cursor position display is on, display the
- * current cursor position on the statusbar. */
- if (ISSET(CONST_UPDATE))
+ /* If constant cursor position display is on, and there are no
+ * keys waiting in the buffer, display the current cursor
+ * position on the statusbar. */
+ if (ISSET(CONST_UPDATE) && get_buffer_len() == 0)
do_cursorpos(TRUE);
currshortcut = main_list;