From: Richard M. Stallman Date: Sat, 14 Feb 1998 07:27:58 +0000 (+0000) Subject: (display_text_line): Use INC_BOTH for unibyte buffers too. X-Git-Tag: emacs-20.3~2178 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9ce37c9d19e468a97c1e0c0e3dcf39b017ecf21f;p=emacs.git (display_text_line): Use INC_BOTH for unibyte buffers too. --- diff --git a/src/xdisp.c b/src/xdisp.c index 399cd0ebae2..3f4f3099057 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -3569,10 +3569,7 @@ display_text_line (w, start, start_byte, vpos, hpos, taboffset, ovstr_done) int opoint = PT, opoint_byte = PT_BYTE; invis = 1; - if (! NILP (current_buffer->enable_multibyte_characters)) - INC_BOTH (pos, pos_byte); - else - pos++, pos_byte++; + INC_BOTH (pos, pos_byte); scan_newline (pos, pos_byte, ZV, ZV_BYTE, 1, 1); if (FETCH_BYTE (pos_byte - 1) == '\n') {