From 88a37cc187c0f6c5b7130a943c7ddd87474a0f69 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 14 Jan 2005 13:04:47 +0000 Subject: c.f. 20675: improve zle as a basis for Unicode. unposted: update version to 4.2.3-dev-1 --- Src/utils.c | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'Src/utils.c') diff --git a/Src/utils.c b/Src/utils.c index 20eef2ac6..21416a535 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -30,17 +30,6 @@ #include "zsh.mdh" #include "utils.pro" -#if defined(HAVE_WCHAR_H) && defined(HAVE_WCTOMB) && defined (__STDC_ISO_10646__) -# include -#else -# ifdef HAVE_LANGINFO_H -# include -# if defined(HAVE_ICONV) || defined(HAVE_LIBICONV) -# include -# endif -# endif -#endif - /* name of script being sourced */ /**/ @@ -79,7 +68,7 @@ zwarn(const char *fmt, const char *str, int num) if (errflag || noerrs) return; if (isatty(2)) - trashzle(); + trashzleptr(); /* * scriptname is set when sourcing scripts, so that we get the * correct name instead of the generic name of whatever @@ -102,7 +91,7 @@ zwarnnam(const char *cmd, const char *fmt, const char *str, int num) } if (errflag || noerrs) return; - trashzle(); + trashzleptr(); if (unset(SHINSTDIN) || locallevel) { nicezputs(scriptname ? scriptname : argzero, stderr); fputc((unsigned char)':', stderr); @@ -1054,7 +1043,7 @@ adjustwinsize(int from) winchanged = #endif /* TIOCGWINSZ */ resetneeded = 1; - zrefresh(); + zrefreshptr(); } } -- cgit 1.4.1