From f2246dfb343bea19beb176fb2cc534f85513b2eb Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Thu, 21 Jan 2016 19:56:39 -0800 Subject: reduce number of Unicode private-use characters This narrows the range of Unicode codepoints fish reserves for its own use from U+E000 thru U+F8FE (6399 codepoints) to U+F600 thru U+F73F (320 codepoints). This is still not ideal since fish shouldn't be using any Unicode private-use codepoints but it's a step in the right direction. This partially addresses issue #2684. --- src/highlight.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/highlight.cpp') diff --git a/src/highlight.cpp b/src/highlight.cpp index 90426803..3014ebdf 100644 --- a/src/highlight.cpp +++ b/src/highlight.cpp @@ -335,7 +335,7 @@ static bool has_expand_reserved(const wcstring &str) for (size_t i=0; i < str.size(); i++) { wchar_t wc = str.at(i); - if (wc >= EXPAND_RESERVED && wc <= EXPAND_RESERVED_END) + if (wc >= EXPAND_RESERVED_BASE && wc <= EXPAND_RESERVED_END) { result = true; break; -- cgit v1.2.3