- After (re)initializing the terminal, make sure the cursor is
always turned on. Changes to do_alt_speller(),
handle_sigwinch(), and main(). (DLR)
+ - Make sure that all references to cut-to-end are left out when
+ NANO_SMALL is defined. Changes to cut_to_eol(),
+ do_cut_text(), and do_statusbar_cut_text(). (DLR)
- chars.c:
make_mbchar()
- Remove unneeded assert. (DLR)
HAVE_GETOPT_LONG isn't defined. (DLR)
usage()
- Fix erroneous #ifdef that resulted in the -d/--rebinddelete
- and -k/--cut options' not being printed when NANO_SMALL was
- defined. (DLR)
+ option's not being printed when NANO_SMALL was defined. (DLR)
find_paragraph()
- Fix problem where a search for the next paragraph would skip
over certain cases of one-line paragraphs. (DLR)
move_to_filestruct(&cutbuffer, &cutbottom, top, top_x, bot, bot_x);
placewewant = xplustabs();
}
-#endif
/* If we're not at the end of the current line, move all the text from
* the current cursor position to the end of the current line,
placewewant = xplustabs();
}
}
+#endif /* !NANO_SMALL */
/* Move text from the current filestruct into the cutbuffer. */
void do_cut_text(void)
* turn the mark off. */
cut_marked();
UNSET(MARK_ISSET);
- } else
-#endif
- if (ISSET(CUT_TO_END))
+ } else if (ISSET(CUT_TO_END))
/* Otherwise, if the CUT_TO_END flag is set, move all text up to
* the end of the line into the cutbuffer. */
cut_to_eol();
else
+#endif
/* Otherwise, move the entire line into the cutbuffer. */
cut_line();
dump_buffer(cutbuffer);
#endif
}
-#endif
+#endif /* !NANO_SMALL */
/* Copy text from the cutbuffer into the current filestruct. */
void do_uncut_text(void)
print1opt("-d", "--rebinddelete", N_("Fix Backspace/Delete confusion problem"));
#ifndef NANO_SMALL
print1opt("-i", "--autoindent", N_("Automatically indent new lines"));
-#endif
print1opt("-k", "--cut", N_("Cut from cursor to end of line"));
+#endif
print1opt("-l", "--nofollow", N_("Don't follow symbolic links, overwrite"));
#ifndef DISABLE_MOUSE
print1opt("-m", "--mouse", N_("Enable mouse"));
void cut_line(void);
#ifndef NANO_SMALL
void cut_marked(void);
-#endif
void cut_to_eol(void);
+#endif
void do_cut_text(void);
#ifndef NANO_SMALL
void do_cut_till_end(void);
{
assert(answer != NULL);
+#ifndef NANO_SMALL
if (ISSET(CUT_TO_END))
null_at(&answer, statusbar_x);
else {
+#endif
null_at(&answer, 0);
statusbar_x = 0;
+#ifndef NANO_SMALL
}
+#endif
}
#ifndef NANO_SMALL