comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2096 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
649b431171
commit
56cf034a12
|
@ -617,7 +617,7 @@ void do_insertfile(
|
||||||
{
|
{
|
||||||
filestruct *top_save = fileage;
|
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
|
* the filestruct so that it contains all the text
|
||||||
* again. Note that we've replaced the non-text
|
* again. Note that we've replaced the non-text
|
||||||
* originally in the partition with the text in the
|
* originally in the partition with the text in the
|
||||||
|
|
18
src/nano.c
18
src/nano.c
|
@ -1619,7 +1619,8 @@ bool do_int_spell_fix(const char *word)
|
||||||
if (old_mark_set) {
|
if (old_mark_set) {
|
||||||
size_t top_data_len, bot_data_len;
|
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)
|
if (added_magicline)
|
||||||
remove_magicline();
|
remove_magicline();
|
||||||
|
|
||||||
|
@ -1637,8 +1638,8 @@ bool do_int_spell_fix(const char *word)
|
||||||
mark_beginx = bot_data_len;
|
mark_beginx = bot_data_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If the mark was on, unpartition the filestruct so that it
|
/* Unpartition the filestruct so that it contains all the text
|
||||||
* contains all the text again, and turn the mark back on. */
|
* again, and turn the mark back on. */
|
||||||
unpartition_filestruct(filepart);
|
unpartition_filestruct(filepart);
|
||||||
SET(MARK_ISSET);
|
SET(MARK_ISSET);
|
||||||
}
|
}
|
||||||
|
@ -1987,7 +1988,8 @@ const char *do_alt_speller(char *tempfile_name)
|
||||||
filestruct *top_save = fileage;
|
filestruct *top_save = fileage;
|
||||||
size_t top_data_len, bot_data_len;
|
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)
|
if (added_magicline)
|
||||||
remove_magicline();
|
remove_magicline();
|
||||||
|
|
||||||
|
@ -2005,10 +2007,10 @@ const char *do_alt_speller(char *tempfile_name)
|
||||||
mark_beginx = bot_data_len;
|
mark_beginx = bot_data_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If the mark was on, unpartition the filestruct so that it
|
/* Unpartition the filestruct so that it contains all the text
|
||||||
* contains all the text again. Note that we've replaced the
|
* again. Note that we've replaced the marked text originally
|
||||||
* marked text originally in the partition with the
|
* in the partition with the spell-checked marked text in the
|
||||||
* spell-checked marked text in the temp file. */
|
* temp file. */
|
||||||
unpartition_filestruct(filepart);
|
unpartition_filestruct(filepart);
|
||||||
|
|
||||||
/* Renumber starting with the beginning line of the old
|
/* Renumber starting with the beginning line of the old
|
||||||
|
|
Loading…
Reference in New Issue