From 8ea830f79b3af704c9da0a120ed4be2e12e71c9d Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 22 Jun 2014 19:23:54 +0000 Subject: [PATCH] When toggling softwrap, only the edit window needs to be refreshed, not the entire screen. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5010 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 2 ++ src/nano.c | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8a032bdf..e5109425 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ 2014-06-22 Benno Schulenberg * src/browser.c (parse_browser_input), src/help.c (parse_help_input): Remove two pointless calls of get_shortcut(), and adjust the comments. + * src/nano.c (do_toggle): When toggling softwrap, only the edit window + needs to be refreshed, not the entire screen. 2014-06-22 Mark Majeres * src/text.c (do_redo): When redoing a line join at the tail diff --git a/src/nano.c b/src/nano.c index 0ec51752..395e3046 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1453,11 +1453,9 @@ void do_toggle(int flag) #endif #ifndef DISABLE_COLOR case NO_COLOR_SYNTAX: - edit_refresh(); - break; #endif case SOFTWRAP: - total_refresh(); + edit_refresh(); break; } -- 2.39.5