diff --git a/ChangeLog b/ChangeLog index 6308d752a..460647f54 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,10 @@ translated strings. This breaks now once every history file but afterwards this will be stable +2009-01-24 Enrico Weigelt + + * src/cmd.c: fixed bug #35 (do_view_cmd is now calling repaint_screen()) + 2009-01-24 Patrick Winnertz * edit/editcmd.c: Fix some issues about regex: diff --git a/src/cmd.c b/src/cmd.c index a1c6017e1..a3ea05c85 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -198,8 +198,8 @@ do_view_cmd (int normal) if (!do_cd (selection (current_panel)->fname, cd_exact)) message (D_ERROR, MSG_ERROR, _("Cannot change directory")); + repaint_screen(); return; - } file_idx = current_panel->selected; @@ -213,6 +213,8 @@ do_view_cmd (int normal) break; file_idx = scan_for_file (current_panel, file_idx, dir); } + + repaint_screen(); } /* Run user's preferred viewer on the currently selected file */