diff src/cmds.c @ 24423:230bace6a57a

(internal_self_insert): Calculate column properly in overwrite-of-tab case.
author Karl Heuer <kwzh@gnu.org>
date Mon, 01 Mar 1999 03:50:00 +0000
parents 1944b3595afd
children 7730c6f39ef5
line wrap: on
line diff
--- a/src/cmds.c	Mon Mar 01 03:48:22 1999 +0000
+++ b/src/cmds.c	Mon Mar 01 03:50:00 1999 +0000
@@ -398,7 +398,7 @@
 		    && 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;