diff options
author | Stefan <stefan@devlug.de> | 2021-04-11 19:42:22 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2021-04-16 18:04:03 +0200 |
commit | f5e1f9fa63b6d0fd7de49f41915acac0d812ff03 (patch) | |
tree | f3831922160ffc906485dcb94e803c67d9891833 /src/command | |
parent | ce508a826a5bb908745272c5ea988142f39fd3a8 (diff) | |
download | profani-tty-f5e1f9fa63b6d0fd7de49f41915acac0d812ff03.tar.gz |
Editor: Fix redisplay
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/cmd_funcs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 1d6d5f8d..180102d5 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -9384,7 +9384,7 @@ cmd_editor(ProfWin* window, const char* const command, gchar** args) g_string_free(text, TRUE); } close(fd_input_file); - ui_redraw(); + GError* deletion_error = NULL; g_file_delete (file, NULL, &deletion_error); if ( deletion_error ) { @@ -9392,6 +9392,9 @@ cmd_editor(ProfWin* window, const char* const command, gchar** args) return TRUE; } g_object_unref(file); + ui_resize(); + rl_point = rl_end; + rl_forced_update_display(); } return TRUE; } |