From 91469bebe51c028140b8ef61dd8e3ed36df39d50 Mon Sep 17 00:00:00 2001 From: bostic Date: Thu, 16 Dec 1993 12:14:30 +0000 Subject: [PATCH] document a bit more why/how V_RCM_SETFNB gets set --- vi/vi.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/vi/vi.c b/vi/vi.c index ce9d8bc7..cad79710 100644 --- a/vi/vi.c +++ b/vi/vi.c @@ -6,7 +6,7 @@ */ #ifndef lint -static char sccsid[] = "$Id: vi.c,v 8.41 1993/12/10 16:24:06 bostic Exp $ (Berkeley) $Date: 1993/12/10 16:24:06 $"; +static char sccsid[] = "$Id: vi.c,v 8.42 1993/12/16 12:14:30 bostic Exp $ (Berkeley) $Date: 1993/12/16 12:14:30 $"; #endif /* not lint */ #include @@ -187,6 +187,14 @@ vi(sp, ep) * screen flags. If the movement is to the EOL the vi command * handles it. If it's to the beginning, we handle it here. * + * Note, some commands (e.g. _, ^) don't set the V_RCM_SETFNB + * flag, but do the work themselves. The reason is that they + * have to modify the column in case they're being used as a + * motion component. Other similar commands (e.g. +, -) don't + * have to modify the column because they are always line mode + * operations when used as motions, so the column number isn't + * of any interest. + * * Does this totally violate the screen and editor layering? * You betcha. As they say, if you think you understand it, * you don't. -- 2.11.4.GIT