diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-01-14 13:04:47 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-01-14 13:04:47 +0000 |
commit | 88a37cc187c0f6c5b7130a943c7ddd87474a0f69 (patch) | |
tree | d1f3fa3261e2f436ef5fc4fd6690b12a448fd11a /Src/utils.c | |
parent | e38389d83e7962759138763a038ed9f2f8e23ec9 (diff) | |
download | zsh-88a37cc187c0f6c5b7130a943c7ddd87474a0f69.tar.gz zsh-88a37cc187c0f6c5b7130a943c7ddd87474a0f69.tar.xz zsh-88a37cc187c0f6c5b7130a943c7ddd87474a0f69.zip |
c.f. 20675: improve zle as a basis for Unicode.
unposted: update version to 4.2.3-dev-1
Diffstat (limited to 'Src/utils.c')
-rw-r--r-- | Src/utils.c | 17 |
1 files changed, 3 insertions, 14 deletions
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 <wchar.h> -#else -# ifdef HAVE_LANGINFO_H -# include <langinfo.h> -# if defined(HAVE_ICONV) || defined(HAVE_LIBICONV) -# include <iconv.h> -# 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(); } } |