summaryrefslogtreecommitdiff
path: root/src/mbyte.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-06-01 17:46:59 +0200
committerBram Moolenaar <Bram@vim.org>2012-06-01 17:46:59 +0200
commit88178de99f9cefb92450ff796e541926f3533cec (patch)
tree54196edc868e45b05d8848872cfc8ddee33c58f5 /src/mbyte.c
parent9a920d8c31bc4d267d8790ba0d83b5774316e08f (diff)
downloadvim-git-88178de99f9cefb92450ff796e541926f3533cec.tar.gz
updated for version 7.3.536v7.3.536
Problem: When spell checking the German sharp s is not seen as a word character. (Aexl Bender) Solution: In utf_islower() return true for the sharp s. Note: also need updated spell file for this to take effect.
Diffstat (limited to 'src/mbyte.c')
-rw-r--r--src/mbyte.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mbyte.c b/src/mbyte.c
index 23944018f..ca3204f21 100644
--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -2949,7 +2949,7 @@ static convertStruct toUpper[] =
{
{0x61,0x7a,1,-32},
{0xb5,0xb5,-1,743},
- {0xe0,0xf6,1,-32},
+ {0xe0,0xf6,1,-32}, /* 0xdf (German sharp s) is not upper-cased */
{0xf8,0xfe,1,-32},
{0xff,0xff,-1,121},
{0x101,0x12f,2,-1},
@@ -3129,7 +3129,8 @@ utf_toupper(a)
utf_islower(a)
int a;
{
- return (utf_toupper(a) != a);
+ /* German sharp s is lower case but has no upper case equivalent. */
+ return (utf_toupper(a) != a) || a == 0xdf;
}
/*