From fd62429d19b652877cdce97f0508c2c3924049f5 Mon Sep 17 00:00:00 2001 From: Geoff Wing Date: Sat, 7 Aug 2004 08:43:56 +0000 Subject: still allow user specified text modifiers with a short terminal. Only disallow if the terminal is really unknown or without sufficient capabilities or if SINGLE_LINE_ZLE option is given --- Src/prompt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src/prompt.c') diff --git a/Src/prompt.c b/Src/prompt.c index 3b16a8e44..b05bbf110 100644 --- a/Src/prompt.c +++ b/Src/prompt.c @@ -749,7 +749,8 @@ stradd(char *d) mod_export void tsetcap(int cap, int flag) { - if (!(termflags & TERM_SHORT) && tcstr[cap]) { + if (tccan(cap) && !isset(SINGLELINEZLE) && + !(termflags & (TERM_NOUP|TERM_BAD|TERM_UNKNOWN))) { switch(flag) { case -1: tputs(tcstr[cap], 1, putraw); -- cgit 1.4.1