CVS code -
- General:
+ - More int -> bool conversions. (DLR)
- Overhaul the cutting and uncutting routines to use the
partitioning code, as it greatly simplifies how they work.
New functions move_to_filestruct(), copy_from_filestruct(),
thanks_for_all_the_fish()
- Free the justify buffer if it isn't empty. (DLR)
- nano.c:
+ do_toggle()
+ - When we get the whitespace display toggle, update the titlebar
+ as well as the edit window, in case the filename displayed on
+ the titlebar contains spaces or tabs. (DLR)
handle_sigwinch()
- If the justify buffer isn't empty, blow it away and don't
display "UnJustify" in the shortcut list anymore. (DLR)
#endif
#ifdef ENABLE_NANORC
case TOGGLE_WHITESPACE_KEY:
+ titlebar(NULL);
edit_refresh();
break;
#endif
assert(current != NULL && current->data != NULL);
- /* Turn off constant cursor position display if it's on. */
- if (old_constupdate)
- UNSET(CONSTUPDATE);
+ /* Turn off constant cursor position display. */
+ UNSET(CONSTUPDATE);
for (i = 0; i < kbinput_len; i++) {
#ifdef NANO_WIDE
#endif
}
- /* Turn constant cursor position display back on if it was on. */
+ /* Turn constant cursor position display back on if it was on
+ * before. */
if (old_constupdate)
SET(CONSTUPDATE);
char *foo;
size_t start_x = 0, foo_len;
#if !defined(NANO_SMALL) && defined(ENABLE_NANORC)
- int old_whitespace = ISSET(WHITESPACE_DISPLAY);
+ bool old_whitespace = ISSET(WHITESPACE_DISPLAY);
UNSET(WHITESPACE_DISPLAY);
#endif
bar = charalloc(COLS - 3);