summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-07-14 18:18:31 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-07-14 18:23:31 +0200
commitc21137129adf0e8dcb08ef43aa8174c8f935ca06 (patch)
treeb06fda3eb10fe6a4100ce7f4c67582524f04e83a
parentab4c4dee76b99f0a454bcf0fdd877cf7fdb2dbc4 (diff)
downloadcalcurse-c21137129adf0e8dcb08ef43aa8174c8f935ca06.tar.gz
calcurse-c21137129adf0e8dcb08ef43aa8174c8f935ca06.zip
Do not unnecessarily refresh in config menu
We don't need to refresh windows every time an unassigned key is pressed. Add a condition to skip the refresh part if that is the case. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
-rw-r--r--src/calcurse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/calcurse.c b/src/calcurse.c
index 0ae7e9a..4a16cdb 100644
--- a/src/calcurse.c
+++ b/src/calcurse.c
@@ -283,6 +283,8 @@ main (int argc, char **argv)
case 'S':
custom_sidebar_config ();
break;
+ default:
+ continue;
}
wins_reset ();
wins_update ();