less/less-416-widechars.patch

14 lines
197 B
Diff
Raw Normal View History

--- cmdbuf.c
+++ cmdbuf.c
@@ -241,7 +241,9 @@
? 2
: 1;
if (bswidth != NULL)
- *bswidth = 1;
+ *bswidth = is_wide_char(ch)
+ ? 2
+ : 1;
}
}
}