]> git.wh0rd.org Git - nano.git/commitdiff
Ehm... that was a silly, superfluous condition.
authorBenno Schulenberg <bensberg@justemail.net>
Wed, 2 Dec 2015 19:11:03 +0000 (19:11 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Wed, 2 Dec 2015 19:11:03 +0000 (19:11 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5469 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/proto.h
src/text.c

index 7b085dffc37591e1bd7089fbfc82721302ff02cd..01d464e592b9e49bd4fdf94db8f042659b4028a8 100644 (file)
@@ -751,6 +751,7 @@ void new_magicline(void);
 void remove_magicline(void);
 void mark_order(const filestruct **top, size_t *top_x, const filestruct
        **bot, size_t *bot_x, bool *right_side_up);
+void discard_until(undo *thisone);
 void add_undo(undo_type action);
 void update_undo(undo_type action);
 #endif
index 96998532215f3fc41773a7f8d30b057d2dd240eb..eef0a52addc2e8ffcd09e0637d70aca790b00cc6 100644 (file)
@@ -2307,8 +2307,7 @@ void do_justify(bool full_justify)
            edit_refresh_needed = TRUE;
        }
     } else {
-       if (func != do_undo)
-           unget_kbinput(kbinput, meta_key, func_key);
+       unget_kbinput(kbinput, meta_key, func_key);
 
        /* Blow away the text in the justify buffer. */
        free_filestruct(jusbuffer);