aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1999-03-01 03:50:00 +0000
committerKarl Heuer1999-03-01 03:50:00 +0000
commit06d74a651259f7ca0d984f707abd1e658ff029d6 (patch)
treea5848df6964201d93d79584e30b56ab1d0665040 /src
parente540533884dcb48f605df33cea7fd1b6cf8e1270 (diff)
downloademacs-06d74a651259f7ca0d984f707abd1e658ff029d6.tar.gz
emacs-06d74a651259f7ca0d984f707abd1e658ff029d6.zip
(internal_self_insert): Calculate column properly
in overwrite-of-tab case.
Diffstat (limited to 'src')
-rw-r--r--src/cmds.c2
1 files changed, 1 insertions, 1 deletions
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)
398 && XINT (current_buffer->tab_width) > 0 398 && XINT (current_buffer->tab_width) > 0
399 && XFASTINT (current_buffer->tab_width) < 20 399 && XFASTINT (current_buffer->tab_width) < 20
400 && (target_clm = (current_column () 400 && (target_clm = (current_column ()
401 + XINT (Fchar_width (make_number (c2)))), 401 + XINT (Fchar_width (make_number (c)))),
402 target_clm % XFASTINT (current_buffer->tab_width))))) 402 target_clm % XFASTINT (current_buffer->tab_width)))))
403 { 403 {
404 int pos = PT; 404 int pos = PT;