diff options
| author | Richard M. Stallman | 1998-02-14 07:27:58 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-02-14 07:27:58 +0000 |
| commit | 9ce37c9d19e468a97c1e0c0e3dcf39b017ecf21f (patch) | |
| tree | f634f9a7a09e23017b0914633fa07c20c7aa079d /src | |
| parent | 4e38953cd1a7a7c87ca8f6701117c56df64e4722 (diff) | |
| download | emacs-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.c | 5 |
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 | { |