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
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;
* 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;
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;