summaryrefslogtreecommitdiffstats
path: root/Src/Zle/zle_refresh.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Zle/zle_refresh.c')
-rw-r--r--Src/Zle/zle_refresh.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index f076bdd61..f27191114 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -1024,6 +1024,8 @@ zrefresh(void)
tmpalloced = 0;
}
+ zle_set_cursorform();
+
/* this will create region_highlights if it's still NULL */
zle_set_highlight();
@@ -1666,6 +1668,7 @@ individually */
/* move to the new cursor position */
moveto(rpms.nvln, rpms.nvcs);
+ cursor_form();
/* swap old and new buffers - better than freeing/allocating every time */
bufswap();
@@ -2706,4 +2709,6 @@ zle_refresh_finish(void)
region_highlights = NULL;
n_region_highlights = 0;
}
+
+ free_cursor_forms();
}