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; also add a few miscellaneous cosmetic fixes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2160 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
diff --git a/src/nano.c b/src/nano.c
index 64c0d8e..20f8a53 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -3275,6 +3275,7 @@
 #endif
 #ifdef ENABLE_NANORC
 	case TOGGLE_WHITESPACE_KEY:
+	    titlebar(NULL);
 	    edit_refresh();
 	    break;
 #endif
@@ -3577,9 +3578,8 @@
 
     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 @@
 #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);