summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2024-01-20 10:39:09 -0300
committerAndrés <andmarti@gmail.com>2024-01-20 10:39:09 -0300
commita2d6366ba2ead5e0278fa337caa9e7646fb157ee (patch)
tree830dcb103f1c69b2add55602142d70f07dab2216
parent0ba93dce6fa354c3ba06e5a0f337d1633f1e518a (diff)
work on issue 862
-rw-r--r--src/cmds/cmds_normal.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmds/cmds_normal.c b/src/cmds/cmds_normal.c
index 56c7e15..fea567c 100644
--- a/src/cmds/cmds_normal.c
+++ b/src/cmds/cmds_normal.c
@@ -361,12 +361,12 @@ void do_normalmode(struct block * buf) {
} else if (buf->pnext->value == L'f') { // gf
unselect_ranges();
- ui_update(TRUE);
- ui_stop_screen();
+ def_prog_mode();
+ endwin();
openfile_under_cursor(sh->currow, sh->curcol);
- ui_start_screen();
- start_default_ucolors();
- set_colors_param_dict();
+ reset_prog_mode();
+ refresh();
+ ui_update(TRUE);
} else if (buf->pnext->value == L'g') { // gg
e = go_home(sh);