summaryrefslogtreecommitdiffstats
path: root/Src/prompt.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-05-09 09:49:08 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-05-09 09:49:08 +0000
commitd89361739acdf07f0b0775c85f69abe89d57b600 (patch)
treeded652c4758d749b718d72491a95f9f2acdf427d /Src/prompt.c
parentusers/15986: handle EINTR in zccmd_input (diff)
downloadzsh-d89361739acdf07f0b0775c85f69abe89d57b600.tar
zsh-d89361739acdf07f0b0775c85f69abe89d57b600.tar.gz
zsh-d89361739acdf07f0b0775c85f69abe89d57b600.tar.bz2
zsh-d89361739acdf07f0b0775c85f69abe89d57b600.tar.lz
zsh-d89361739acdf07f0b0775c85f69abe89d57b600.tar.xz
zsh-d89361739acdf07f0b0775c85f69abe89d57b600.tar.zst
zsh-d89361739acdf07f0b0775c85f69abe89d57b600.zip
29165: use term.h globally if needed at all.
Diffstat (limited to 'Src/prompt.c')
-rw-r--r--Src/prompt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/prompt.c b/Src/prompt.c
index 715f4b503..d15b7c0d4 100644
--- a/Src/prompt.c
+++ b/Src/prompt.c
@@ -1008,7 +1008,7 @@ countprompt(char *str, int *wp, int *hp, int overf)
#endif
for (; *str; str++) {
- if (w >= columns && overf >= 0) {
+ if (w >= zterm_columns && overf >= 0) {
w = 0;
h++;
}
@@ -1092,8 +1092,8 @@ countprompt(char *str, int *wp, int *hp, int overf)
* This isn't easy to handle generally; just assume there's no
* output.
*/
- if(w >= columns && overf >= 0) {
- if (!overf || w > columns) {
+ if(w >= zterm_columns && overf >= 0) {
+ if (!overf || w > zterm_columns) {
w = 0;
h++;
}