From 06d74a651259f7ca0d984f707abd1e658ff029d6 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Mon, 1 Mar 1999 03:50:00 +0000 Subject: [PATCH] (internal_self_insert): Calculate column properly in overwrite-of-tab case. --- src/cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmds.c b/src/cmds.c index c1f92c745f6..2273aa03002 100644 --- a/src/cmds.c +++ b/src/cmds.c @@ -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; -- 2.39.2