diff options
author | Oliver Kiddle <opk@zsh.org> | 2023-01-10 21:13:52 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2023-01-10 21:13:52 +0100 |
commit | be2c91bbc3361398a18ea4b77d493dded0a60e79 (patch) | |
tree | da7469527a72ad4f9406cca7fc48b9f89599ef6f /Src/prompt.c | |
parent | 498b771a821c9ca7f77b9f64789dfdfb79fd0631 (diff) | |
download | zsh-be2c91bbc3361398a18ea4b77d493dded0a60e79.tar.gz zsh-be2c91bbc3361398a18ea4b77d493dded0a60e79.tar.xz zsh-be2c91bbc3361398a18ea4b77d493dded0a60e79.zip |
51291: support for highlighting ellipses in the line editor
Diffstat (limited to 'Src/prompt.c')
-rw-r--r-- | Src/prompt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/prompt.c b/Src/prompt.c index 4f29a6728..39fcf5eb7 100644 --- a/Src/prompt.c +++ b/Src/prompt.c @@ -1648,6 +1648,9 @@ cleartextattributes(int flags) mod_export void treplaceattrs(zattr newattrs) { + if (newattrs == TXT_ERROR) + return; + if (txtunknownattrs) { /* Set current attributes to the opposite of the new ones * for any that are unknown so that applytextattributes() |