[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/xdisp.c
From: |
Kenichi Handa |
Subject: |
[Emacs-diffs] Changes to emacs/src/xdisp.c |
Date: |
Fri, 17 Feb 2006 12:35:53 +0000 |
Index: emacs/src/xdisp.c
diff -u emacs/src/xdisp.c:1.1074 emacs/src/xdisp.c:1.1075
--- emacs/src/xdisp.c:1.1074 Fri Feb 3 13:14:43 2006
+++ emacs/src/xdisp.c Fri Feb 17 12:35:52 2006
@@ -16477,8 +16477,11 @@
{
int bytepos = last_offset;
int charpos = string_byte_to_char (elt, bytepos);
+
+ if (precision <= 0)
+ nchars = string_byte_to_char (elt, offset) - charpos;
n += display_string (NULL, elt, Qnil, 0, charpos,
- it, 0, prec, 0,
+ it, 0, nchars, 0,
STRING_MULTIBYTE (elt));
}
break;
@@ -17727,7 +17730,7 @@
display them, and < 0 means obey the current buffer's value of
enable_multibyte_characters.
- Value is the number of glyphs produced. */
+ Value is the number of columns displayed. */
static int
display_string (string, lisp_string, face_string, face_string_pos,