From ce259bf65cabd6940565148cdd139dbffc7dbe02 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Thu, 25 Mar 2010 10:38:47 +0300 Subject: [PATCH] Optimization: removed superfluous actions. Signed-off-by: Andrew Borodin --- src/viewer/actions_cmd.c | 4 ---- src/viewer/lib.c | 1 - 2 files changed, 5 deletions(-) diff --git a/src/viewer/actions_cmd.c b/src/viewer/actions_cmd.c index 016c0ef4b..ab85b4ae1 100644 --- a/src/viewer/actions_cmd.c +++ b/src/viewer/actions_cmd.c @@ -329,17 +329,14 @@ mcview_execute_cmd (mcview_t * view, unsigned long command) case CK_ViewToggleWrapMode: /* Toggle between wrapped and unwrapped view */ mcview_toggle_wrap_mode (view); - view->dirty++; break; case CK_ViewToggleHexEditMode: /* Toggle between hexview and hexedit mode */ mcview_toggle_hexedit_mode (view); - view->dirty++; break; case CK_ViewToggleHexMode: /* Toggle between hex view and text view */ mcview_toggle_hex_mode (view); - view->dirty++; break; case CK_ViewGoto: { @@ -365,7 +362,6 @@ mcview_execute_cmd (mcview_t * view, unsigned long command) break; case CK_ViewToggleMagicMode: mcview_toggle_magic_mode (view); - view->dirty++; break; case CK_ViewToggleNroffMode: mcview_toggle_nroff_mode (view); diff --git a/src/viewer/lib.c b/src/viewer/lib.c index 947e2ace5..13c53ce37 100644 --- a/src/viewer/lib.c +++ b/src/viewer/lib.c @@ -79,7 +79,6 @@ mcview_toggle_magic_mode (mcview_t * view) filename = g_strdup (view->filename); command = g_strdup (view->command); - mcview_done (view); mcview_load (view, command, filename, 0); g_free (filename); g_free (command);