aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-02-14 07:27:58 +0000
committerRichard M. Stallman1998-02-14 07:27:58 +0000
commit9ce37c9d19e468a97c1e0c0e3dcf39b017ecf21f (patch)
treef634f9a7a09e23017b0914633fa07c20c7aa079d /src
parent4e38953cd1a7a7c87ca8f6701117c56df64e4722 (diff)
downloademacs-9ce37c9d19e468a97c1e0c0e3dcf39b017ecf21f.tar.gz
emacs-9ce37c9d19e468a97c1e0c0e3dcf39b017ecf21f.zip
(display_text_line): Use INC_BOTH for unibyte buffers too.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c5
1 files changed, 1 insertions, 4 deletions
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)
3569 int opoint = PT, opoint_byte = PT_BYTE; 3569 int opoint = PT, opoint_byte = PT_BYTE;
3570 3570
3571 invis = 1; 3571 invis = 1;
3572 if (! NILP (current_buffer->enable_multibyte_characters)) 3572 INC_BOTH (pos, pos_byte);
3573 INC_BOTH (pos, pos_byte);
3574 else
3575 pos++, pos_byte++;
3576 scan_newline (pos, pos_byte, ZV, ZV_BYTE, 1, 1); 3573 scan_newline (pos, pos_byte, ZV, ZV_BYTE, 1, 1);
3577 if (FETCH_BYTE (pos_byte - 1) == '\n') 3574 if (FETCH_BYTE (pos_byte - 1) == '\n')
3578 { 3575 {