diff --git a/ChangeLog b/ChangeLog index fbb99952baba255033b9b54646ee35bf9f53b0b2..fb5773d0a6bf2062083d160dcb0be8b9442d9dab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,7 +13,6 @@ CVS code - blank_statusbar(), in order to ensure that the statusbar is actually blanked. Changes to do_help(), do_continue(), handle_sigwinch(), and update_statusbar_line(). (DLR) - (DLR) - If the mark isn't on, allow Meta-} and Meta-{ to indent and unindent only the current line, just as it would if the mark covered only the current line, instead of displaying a diff --git a/src/winio.c b/src/winio.c index 3edae1ee594caf027874756795578a9a2f470dd0..9acdb85401b5333abf28d5544efa4015d814d41a 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1942,12 +1942,12 @@ char *display_string(const char *buf, size_t start_col, size_t len, bool return converted; } -/* Display the path specified in path on the titlebar, along with the - * current version of nano and whether the current file has been - * modified. If path is NULL, assume we're in normal editing mode and - * display the current filename instead. Otherwise, assume we're in the - * file browser, and don't display whether the current file has been - * modified. */ +/* If path is NULL, we're in normal editing mode, so display the current + * version of nano, the current filename, and whether the current file + * has been modified on the titlebar. If path isn't NULL, we're in the + * file browser, and path contains the directory to start the file + * browser in, so display the current version of nano and the contents + * of path on the titlebar. */ void titlebar(const char *path) { int space = COLS; @@ -1964,7 +1964,8 @@ void titlebar(const char *path) * buffer. */ size_t statelen = 0; /* The length of the state in columns, or the length of - * "Modified" if the state is blank and path is NULL. */ + * "Modified" if the state is blank and we're not in the file + * browser. */ char *exppath = NULL; /* The filename, expanded for display. */ bool newfie = FALSE; @@ -2037,7 +2038,7 @@ void titlebar(const char *path) if (!newfie && prefixlen + statelen < space) prefixlen++; - /* If we're not in the file browser, path should be the current + /* If we're not in the file browser, set path to the current * filename. */ if (path == NULL) path = openfile->filename;