[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vile] regression in 9.7i
From: |
Thomas Dickey |
Subject: |
[vile] regression in 9.7i |
Date: |
Wed, 3 Dec 2008 15:24:30 -0500 (EST) |
I noticed that "R" on a buffer with UTF-8 encoding doesn't work properly
(is not deleting old bytes).
Looks like I was only testing buffers containing mostly UTF-8...
Here's a fix
diff -u -r -N vile-9.7i/insert.c vile-9.7i2/insert.c
--- vile-9.7i/insert.c Thu Nov 27 17:47:49 2008
+++ vile-9.7i2/insert.c Wed Dec 3 20:13:07 2008
@@ -756,7 +756,7 @@
is_utf8_continuation(BUFFER *bp, int ch)
{
int result = FALSE;
- if (b_is_utfXX(bp)) {
+ if (b_is_utfXX(bp) && (ch >= 0x80)) {
if ((ch & 0xc0) != 0x80) {
result = TRUE;
}
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [vile] regression in 9.7i,
Thomas Dickey <=