nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 6fa1e98c8dc823fe08f7f035097bddf16d72918f
parent 1fbcf0b23deed5081ca5e04166adbf459a673e6f
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Wed,  2 Dec 2015 19:11:03 +0000

Ehm... that was a silly, superfluous condition.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5469 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/proto.h | 1+
Msrc/text.c | 3+--
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 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 @@ -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);