diff --git a/ChangeLog b/ChangeLog index 9ca09be93ec4aa9039f2d05b5180f668b37c9dcd..c8e53283c39806d371d9761c1a68dc76b2ed93f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2014-02-22 David Lawrence Ramsey <pooka109@gmail.com> + * src/nano.c (allow_pending_sigwinch) - A (char *) cast for pedantic purposes. + * src/cut.c (do_cut_text) - Wrap a reference to 'copy_text' in NANO_TINY. +2014-02-22 David Lawrence Ramsey <pooka109@gmail.com> * ChangeLog, NEWS, doc/faq.html - Fix typos, wording, and spacing. 2014-01-24 Benno Schulenberg <bens> diff --git a/src/cut.c b/src/cut.c index 60a1533a3c5554e2206f9db938eab8be8c13c32f..552189b3447073da04adfdcdab70a4cb8340d262 100644 --- a/src/cut.c +++ b/src/cut.c @@ -207,11 +207,15 @@ void do_cut_text( } else if (!undoing) update_undo(CUT); #endif - /* Leave the text in the cutbuffer, and mark the file as - * modified. */ - if (!copy_text) { - set_modified(); - } + /* Leave the text in the cutbuffer, and mark the file as + * modified. */ +#ifndef NANO_TINY + if (!copy_text) { +#endif + set_modified(); +#ifndef NANO_TINY + } +#endif /* Update the screen. */ edit_refresh_needed = TRUE; diff --git a/src/nano.c b/src/nano.c index 08c8441f8026bdee04c12abecd1106613b7bf7f7..d31b29467fb509c5bdfef97e0bcc1b2dea221f04 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1398,7 +1398,7 @@ void do_toggle(int flag) enabled = ISSET(flag); - if (flag == NO_HELP + if (flag == NO_HELP #ifndef DISABLE_WRAPPING || flag == NO_WRAP #endif @@ -1408,7 +1408,7 @@ void do_toggle(int flag) ) enabled = !enabled; - desc = _(flagtostr(flag)); + desc = (char *) _(flagtostr(flag)); statusbar("%s %s", desc, enabled ? _("enabled") : _("disabled")); }