less/less-429-widechars.patch

16 lines
399 B
Diff

Index: cmdbuf.c
===================================================================
--- cmdbuf.c.orig 2009-06-03 15:16:21.000000000 +0200
+++ cmdbuf.c 2009-06-03 15:20:52.000000000 +0200
@@ -246,7 +246,9 @@ cmd_step_common(p, ch, len, pwidth, bswi
? 2
: 1;
if (bswidth != NULL)
- *bswidth = 1;
+ *bswidth = is_wide_char(ch)
+ ? 2
+ : 1;
}
}
}