summaryrefslogtreecommitdiff
path: root/lib/libedit/vi.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1996-08-11 19:20:30 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1996-08-11 19:20:30 +0000
commit6f99f89bbea765ba537f8ddc39794da313fe259b (patch)
tree9a2a7c594f9c5a81136b03380da55a891b29c1aa /lib/libedit/vi.c
parentb7c6d4477a4852a5b013214774cbe16007c6b0f4 (diff)
Notes
Diffstat (limited to 'lib/libedit/vi.c')
-rw-r--r--lib/libedit/vi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libedit/vi.c b/lib/libedit/vi.c
index 1a467809dd88..a9e6111993d9 100644
--- a/lib/libedit/vi.c
+++ b/lib/libedit/vi.c
@@ -277,7 +277,7 @@ vi_change_case(el, c)
int c;
{
if (el->el_line.cursor < el->el_line.lastchar) {
- c = *el->el_line.cursor;
+ c = *el->el_line.cursor & 0xFF;
if (isupper(c))
*el->el_line.cursor++ = tolower(c);
else if (islower(c))