From 4ea2eac36083e16387033052ce8cbfc5f13943d8 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sun, 9 Jul 2006 00:52:16 +0000
Subject: [PATCH] comment fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3772 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 ChangeLog   |  1 -
 src/winio.c | 17 +++++++++--------
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index fbb99952..fb5773d0 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 3edae1ee..9acdb854 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;
-- 
GitLab