From 56cf034a125995a1b7736db03de89abc7fce06e7 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Mon, 15 Nov 2004 18:44:30 +0000 Subject: [PATCH] comment fixes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2096 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/files.c | 2 +- src/nano.c | 18 ++++++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/files.c b/src/files.c index 8942ae6c..07e5a247 100644 --- a/src/files.c +++ b/src/files.c @@ -617,7 +617,7 @@ void do_insertfile( { filestruct *top_save = fileage; - /* If we're not inserting into a new buffer, unpartition + /* If we didn't insert into a new buffer, unpartition * the filestruct so that it contains all the text * again. Note that we've replaced the non-text * originally in the partition with the text in the diff --git a/src/nano.c b/src/nano.c index 08b2ba67..bb82171e 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1619,7 +1619,8 @@ bool do_int_spell_fix(const char *word) if (old_mark_set) { size_t top_data_len, bot_data_len; - /* If we added a magicline, remove it now. */ + /* If the mark was on and we added a magicline, remove it + * now. */ if (added_magicline) remove_magicline(); @@ -1637,8 +1638,8 @@ bool do_int_spell_fix(const char *word) mark_beginx = bot_data_len; } - /* If the mark was on, unpartition the filestruct so that it - * contains all the text again, and turn the mark back on. */ + /* Unpartition the filestruct so that it contains all the text + * again, and turn the mark back on. */ unpartition_filestruct(filepart); SET(MARK_ISSET); } @@ -1987,7 +1988,8 @@ const char *do_alt_speller(char *tempfile_name) filestruct *top_save = fileage; size_t top_data_len, bot_data_len; - /* If we added a magicline, remove it now. */ + /* If the mark was on and we added a magicline, remove it + * now. */ if (added_magicline) remove_magicline(); @@ -2005,10 +2007,10 @@ const char *do_alt_speller(char *tempfile_name) mark_beginx = bot_data_len; } - /* If the mark was on, unpartition the filestruct so that it - * contains all the text again. Note that we've replaced the - * marked text originally in the partition with the - * spell-checked marked text in the temp file. */ + /* Unpartition the filestruct so that it contains all the text + * again. Note that we've replaced the marked text originally + * in the partition with the spell-checked marked text in the + * temp file. */ unpartition_filestruct(filepart); /* Renumber starting with the beginning line of the old -- 2.39.5