about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-08-09 09:33:37 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-08-09 09:33:37 +0000
commitaa638fec26a316b00ebbb2f5f620faf600b8f6ae (patch)
tree43871008d3c8099f988f8dda9cbb5aa93e87c778 /Src
parente8cb99701333a456567bf7543b723b289bb6d1e0 (diff)
downloadzsh-aa638fec26a316b00ebbb2f5f620faf600b8f6ae.tar.gz
zsh-aa638fec26a316b00ebbb2f5f620faf600b8f6ae.tar.xz
zsh-aa638fec26a316b00ebbb2f5f620faf600b8f6ae.zip
21577 (adapted): Dan Bullok: improved window resize handling, again
Diffstat (limited to 'Src')
-rw-r--r--Src/init.c3
-rw-r--r--Src/utils.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/Src/init.c b/Src/init.c
index c6fd0e4d9..cd20c2237 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -1150,6 +1150,8 @@ noop_function_int(UNUSED(int nothing))
 /**/
 mod_export ZleVoidFn trashzleptr = noop_function;
 /**/
+mod_export ZleVoidFn zle_resetpromptptr = noop_function;
+/**/
 mod_export ZleVoidFn zrefreshptr = noop_function;
 /**/
 mod_export ZleVoidIntFn zleaddtolineptr = noop_function_int;
@@ -1163,6 +1165,7 @@ mod_export ZleVoidIntFn zlesetkeymapptr = noop_function_int;
 #else /* !LINKED_XMOD_zshQszle */
 
 mod_export ZleVoidFn trashzleptr = noop_function;
+mod_export ZleVoidFn zle_resetpromptptr = noop_function;
 mod_export ZleVoidFn zrefreshptr = noop_function;
 mod_export ZleVoidIntFn zleaddtolineptr = noop_function_int;
 mod_export ZleGetLineFn zlegetlineptr = NULL;
diff --git a/Src/utils.c b/Src/utils.c
index 8384de70e..cafcc7fbc 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -1064,7 +1064,8 @@ adjustwinsize(int from)
 	winchanged =
 #endif /* TIOCGWINSZ */
 	    resetneeded = 1;
-	trashzleptr();
+	zrefreshptr();
+	zle_resetpromptptr();
     }
 }