Commit 06d74a65 authored by Karl Heuer's avatar Karl Heuer

(internal_self_insert): Calculate column properly

in overwrite-of-tab case.
parent e5405338
......@@ -398,7 +398,7 @@ internal_self_insert (c, noautofill)
&& XINT (current_buffer->tab_width) > 0
&& XFASTINT (current_buffer->tab_width) < 20
&& (target_clm = (current_column ()
+ XINT (Fchar_width (make_number (c2)))),
+ XINT (Fchar_width (make_number (c)))),
target_clm % XFASTINT (current_buffer->tab_width)))))
{
int pos = PT;
......
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