From be65c2979c6d10ad1379d72151a44d5d803f884c Mon Sep 17 00:00:00 2001 From: Ilia Maslakov Date: Sun, 1 Nov 2009 06:16:34 +0000 Subject: [PATCH] Ticket #1768 (incorrect calculation utf-8 width) fixed miscalculating of width some utf-8 characters Signed-off-by: Ilia Maslakov --- edit/edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit/edit.c b/edit/edit.c index 009018119..c61d07942 100644 --- a/edit/edit.c +++ b/edit/edit.c @@ -1627,7 +1627,7 @@ long edit_move_forward3 (WEdit * edit, long current, int cols, long upto) if (utf8_display) col += 1; } else { - col -= cw; + col -= 2; } p += cw - 1; } -- 2.11.4.GIT