]> git.eshelyaron.com Git - emacs.git/commitdiff
(internal_self_insert): Calculate column properly
authorKarl Heuer <kwzh@gnu.org>
Mon, 1 Mar 1999 03:50:00 +0000 (03:50 +0000)
committerKarl Heuer <kwzh@gnu.org>
Mon, 1 Mar 1999 03:50:00 +0000 (03:50 +0000)
in overwrite-of-tab case.

src/cmds.c

index c1f92c745f67f066e46d82c32c0cbaa5bffdde04..2273aa0300283cc0b3528d0c74f7e83373d1efaa 100644 (file)
@@ -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;