mirror of
git://git.sv.gnu.org/nano.git
synced 2025-03-05 08:11:34 +03:00
remove a bit of redundant code, and add a few more comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2059 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
f978f040bd
commit
f643fc2149
@ -1567,12 +1567,10 @@ bool do_int_spell_fix(const char *word)
|
|||||||
#ifndef NANO_SMALL
|
#ifndef NANO_SMALL
|
||||||
if (old_mark_set) {
|
if (old_mark_set) {
|
||||||
/* If the mark is on, partition the filestruct so that it
|
/* If the mark is on, partition the filestruct so that it
|
||||||
* contains only the marked text, set edittop to the top of the
|
* contains only the marked text, and turn the mark off. */
|
||||||
* marked text, and turn the mark off. */
|
|
||||||
mark_order((const filestruct **)&top, &top_x,
|
mark_order((const filestruct **)&top, &top_x,
|
||||||
(const filestruct **)&bot, &bot_x);
|
(const filestruct **)&bot, &bot_x);
|
||||||
filepart = partition_filestruct(top, top_x, bot, bot_x);
|
filepart = partition_filestruct(top, top_x, bot, bot_x);
|
||||||
edittop = fileage;
|
|
||||||
UNSET(MARK_ISSET);
|
UNSET(MARK_ISSET);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -687,7 +687,7 @@ ssize_t do_replace_loop(const char *needle, const filestruct
|
|||||||
if (old_mark_set) {
|
if (old_mark_set) {
|
||||||
/* If the mark is on, partition the filestruct so that it
|
/* If the mark is on, partition the filestruct so that it
|
||||||
* contains only the marked text, set right_side_up properly,
|
* contains only the marked text, set right_side_up properly,
|
||||||
* set edittop to the top of the marked text, turn the mark off,
|
* set edittop to the top of the partition, turn the mark off,
|
||||||
* and refresh the screen. */
|
* and refresh the screen. */
|
||||||
mark_order((const filestruct **)&top, &top_x,
|
mark_order((const filestruct **)&top, &top_x,
|
||||||
(const filestruct **)&bot, &bot_x);
|
(const filestruct **)&bot, &bot_x);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user