Commit 4ea2eac3 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

comment fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3772 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 9 additions and 9 deletions
+9 -9
...@@ -13,7 +13,6 @@ CVS code - ...@@ -13,7 +13,6 @@ CVS code -
blank_statusbar(), in order to ensure that the statusbar is blank_statusbar(), in order to ensure that the statusbar is
actually blanked. Changes to do_help(), do_continue(), actually blanked. Changes to do_help(), do_continue(),
handle_sigwinch(), and update_statusbar_line(). (DLR) handle_sigwinch(), and update_statusbar_line(). (DLR)
(DLR)
- If the mark isn't on, allow Meta-} and Meta-{ to indent and - 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 unindent only the current line, just as it would if the mark
covered only the current line, instead of displaying a covered only the current line, instead of displaying a
......
...@@ -1942,12 +1942,12 @@ char *display_string(const char *buf, size_t start_col, size_t len, bool ...@@ -1942,12 +1942,12 @@ char *display_string(const char *buf, size_t start_col, size_t len, bool
return converted; return converted;
} }
/* Display the path specified in path on the titlebar, along with the /* If path is NULL, we're in normal editing mode, so display the current
* current version of nano and whether the current file has been * version of nano, the current filename, and whether the current file
* modified. If path is NULL, assume we're in normal editing mode and * has been modified on the titlebar. If path isn't NULL, we're in the
* display the current filename instead. Otherwise, assume we're in the * file browser, and path contains the directory to start the file
* file browser, and don't display whether the current file has been * browser in, so display the current version of nano and the contents
* modified. */ * of path on the titlebar. */
void titlebar(const char *path) void titlebar(const char *path)
{ {
int space = COLS; int space = COLS;
...@@ -1964,7 +1964,8 @@ void titlebar(const char *path) ...@@ -1964,7 +1964,8 @@ void titlebar(const char *path)
* buffer. */ * buffer. */
size_t statelen = 0; size_t statelen = 0;
/* The length of the state in columns, or the length of /* 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; char *exppath = NULL;
/* The filename, expanded for display. */ /* The filename, expanded for display. */
bool newfie = FALSE; bool newfie = FALSE;
...@@ -2037,7 +2038,7 @@ void titlebar(const char *path) ...@@ -2037,7 +2038,7 @@ void titlebar(const char *path)
if (!newfie && prefixlen + statelen < space) if (!newfie && prefixlen + statelen < space)
prefixlen++; 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. */ * filename. */
if (path == NULL) if (path == NULL)
path = openfile->filename; path = openfile->filename;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment