diff --git a/ChangeLog b/ChangeLog index e2807d699bf53adc99dd61443df94b76a04b4ed0..5ce8f742ad2df370c6598134436a62cdfc9bf34a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 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(), @@ -70,6 +71,10 @@ CVS code - 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) diff --git a/src/nano.c b/src/nano.c index 64c0d8e37ccc8c7edc02604c8a83cdf90132bb72..20f8a531ba500d7d59bc72100a75512082106dda 100644 --- a/src/nano.c +++ b/src/nano.c @@ -3275,6 +3275,7 @@ void do_toggle(const toggle *which) #endif #ifdef ENABLE_NANORC case TOGGLE_WHITESPACE_KEY: + titlebar(NULL); edit_refresh(); break; #endif @@ -3577,9 +3578,8 @@ void do_output(int *kbinput, size_t kbinput_len) 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 @@ -3662,7 +3662,8 @@ void do_output(int *kbinput, size_t kbinput_len) #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); diff --git a/src/winio.c b/src/winio.c index c3b810bc73f21a25b1d95608c232831547fb677a..96cac082e69e107803163894a686735f0714610a 100644 --- a/src/winio.c +++ b/src/winio.c @@ -2393,7 +2393,7 @@ void statusbar(const char *msg, ...) 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);