aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/highlight.cpp
diff options
context:
space:
mode:
authorGravatar Kurtis Rader <krader@skepticism.us>2016-01-21 19:56:39 -0800
committerGravatar Kurtis Rader <krader@skepticism.us>2016-02-28 18:36:34 -0800
commitf2246dfb343bea19beb176fb2cc534f85513b2eb (patch)
treef95f0c4f4f48d445c1d561aa0986d2b98cdecec5 /src/highlight.cpp
parentb41b96233616f26e52663c133f7a29d32b0e9142 (diff)
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.
Diffstat (limited to 'src/highlight.cpp')
-rw-r--r--src/highlight.cpp2
1 files changed, 1 insertions, 1 deletions
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;