From 6fa1e98c8dc823fe08f7f035097bddf16d72918f Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 2 Dec 2015 19:11:03 +0000 Subject: [PATCH] Ehm... that was a silly, superfluous condition. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5469 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/proto.h | 1 + src/text.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/proto.h b/src/proto.h index 7b085dff..01d464e5 100644 --- a/src/proto.h +++ b/src/proto.h @@ -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 diff --git a/src/text.c b/src/text.c index 96998532..eef0a52a 100644 --- a/src/text.c +++ b/src/text.c @@ -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);