Commit 5f15d712 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(direct_output_for_insert): Use DEC_TEXT_POS

with parameter MULTIBYTE_P.
parent 7bed37e4
......@@ -3162,7 +3162,7 @@ direct_output_for_insert (g)
position. */
clear_glyph_row (&scratch_glyph_row);
SET_TEXT_POS (pos, PT, PT_BYTE);
DEC_TEXT_POS (pos);
DEC_TEXT_POS (pos, !NILP (current_buffer->enable_multibyte_characters));
init_iterator (&it, w, CHARPOS (pos), BYTEPOS (pos), &scratch_glyph_row,
DEFAULT_FACE_ID);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment