aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/vi
diff options
context:
space:
mode:
authorSean Eric Fagan <sef@FreeBSD.org>1994-08-17 22:18:03 +0000
committerSean Eric Fagan <sef@FreeBSD.org>1994-08-17 22:18:03 +0000
commit57eb4d53f771ebe00ddc71f3e42fc61ad3fdac48 (patch)
tree674556167670f16af0e4d425abc83d3d1e94ed8d /usr.bin/vi
parent49e3cd80eeb8f1664c13a21a0aeb67c8b1d62a62 (diff)
Notes
Diffstat (limited to 'usr.bin/vi')
-rw-r--r--usr.bin/vi/vi/getc.c2
-rw-r--r--usr.bin/vi/vi/v_ch.c2
-rw-r--r--usr.bin/vi/vi/v_delete.c2
-rw-r--r--usr.bin/vi/vi/v_ex.c2
-rw-r--r--usr.bin/vi/vi/v_increment.c2
-rw-r--r--usr.bin/vi/vi/v_init.c2
-rw-r--r--usr.bin/vi/vi/v_left.c2
-rw-r--r--usr.bin/vi/vi/v_mark.c2
-rw-r--r--usr.bin/vi/vi/v_match.c2
-rw-r--r--usr.bin/vi/vi/v_ntext.c2
-rw-r--r--usr.bin/vi/vi/v_paragraph.c2
-rw-r--r--usr.bin/vi/vi/v_put.c2
-rw-r--r--usr.bin/vi/vi/v_redraw.c2
-rw-r--r--usr.bin/vi/vi/v_replace.c2
-rw-r--r--usr.bin/vi/vi/v_right.c2
-rw-r--r--usr.bin/vi/vi/v_screen.c2
-rw-r--r--usr.bin/vi/vi/v_scroll.c2
-rw-r--r--usr.bin/vi/vi/v_search.c2
-rw-r--r--usr.bin/vi/vi/v_section.c2
-rw-r--r--usr.bin/vi/vi/v_sentence.c2
-rw-r--r--usr.bin/vi/vi/v_status.c2
-rw-r--r--usr.bin/vi/vi/v_stop.c2
-rw-r--r--usr.bin/vi/vi/v_text.c9
-rw-r--r--usr.bin/vi/vi/v_ulcase.c2
-rw-r--r--usr.bin/vi/vi/v_undo.c2
-rw-r--r--usr.bin/vi/vi/v_util.c2
-rw-r--r--usr.bin/vi/vi/v_word.c2
-rw-r--r--usr.bin/vi/vi/v_xchar.c2
-rw-r--r--usr.bin/vi/vi/v_yank.c2
-rw-r--r--usr.bin/vi/vi/v_z.c2
-rw-r--r--usr.bin/vi/vi/v_zexit.c2
-rw-r--r--usr.bin/vi/vi/vcmd.c2
-rw-r--r--usr.bin/vi/vi/vi.c2
33 files changed, 38 insertions, 35 deletions
diff --git a/usr.bin/vi/vi/getc.c b/usr.bin/vi/vi/getc.c
index 14c8423120c05..dbdd6b23eaf17 100644
--- a/usr.bin/vi/vi/getc.c
+++ b/usr.bin/vi/vi/getc.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)getc.c 8.9 (Berkeley) 5/21/94";
+static const char sccsid[] = "@(#)getc.c 8.10 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_ch.c b/usr.bin/vi/vi/v_ch.c
index 1e59460ff7d92..00b5b8420f6d0 100644
--- a/usr.bin/vi/vi/v_ch.c
+++ b/usr.bin/vi/vi/v_ch.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_ch.c 8.13 (Berkeley) 7/27/94";
+static const char sccsid[] = "@(#)v_ch.c 8.14 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_delete.c b/usr.bin/vi/vi/v_delete.c
index aa2af9814e95e..73996c393e83b 100644
--- a/usr.bin/vi/vi/v_delete.c
+++ b/usr.bin/vi/vi/v_delete.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_delete.c 8.14 (Berkeley) 7/28/94";
+static const char sccsid[] = "@(#)v_delete.c 8.15 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_ex.c b/usr.bin/vi/vi/v_ex.c
index 6481b407d0027..466cd2f946c1a 100644
--- a/usr.bin/vi/vi/v_ex.c
+++ b/usr.bin/vi/vi/v_ex.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_ex.c 8.10 (Berkeley) 8/4/94";
+static const char sccsid[] = "@(#)v_ex.c 8.11 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_increment.c b/usr.bin/vi/vi/v_increment.c
index 6961953276dc4..48f31dc27cbc9 100644
--- a/usr.bin/vi/vi/v_increment.c
+++ b/usr.bin/vi/vi/v_increment.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_increment.c 8.9 (Berkeley) 5/21/94";
+static const char sccsid[] = "@(#)v_increment.c 8.10 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_init.c b/usr.bin/vi/vi/v_init.c
index 069733ce1b231..a7b8ad3811513 100644
--- a/usr.bin/vi/vi/v_init.c
+++ b/usr.bin/vi/vi/v_init.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_init.c 8.26 (Berkeley) 8/8/94";
+static const char sccsid[] = "@(#)v_init.c 8.27 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_left.c b/usr.bin/vi/vi/v_left.c
index ec57d91430919..2578782557c20 100644
--- a/usr.bin/vi/vi/v_left.c
+++ b/usr.bin/vi/vi/v_left.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_left.c 8.9 (Berkeley) 7/27/94";
+static const char sccsid[] = "@(#)v_left.c 8.10 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_mark.c b/usr.bin/vi/vi/v_mark.c
index 66dda1a7ff597..640ef8f8667bd 100644
--- a/usr.bin/vi/vi/v_mark.c
+++ b/usr.bin/vi/vi/v_mark.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_mark.c 8.8 (Berkeley) 7/27/94";
+static const char sccsid[] = "@(#)v_mark.c 8.9 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_match.c b/usr.bin/vi/vi/v_match.c
index b047a44317471..ee1529fa0390d 100644
--- a/usr.bin/vi/vi/v_match.c
+++ b/usr.bin/vi/vi/v_match.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_match.c 8.14 (Berkeley) 7/27/94";
+static const char sccsid[] = "@(#)v_match.c 8.15 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_ntext.c b/usr.bin/vi/vi/v_ntext.c
index 5dcba3b2f967c..4d242f9ccf278 100644
--- a/usr.bin/vi/vi/v_ntext.c
+++ b/usr.bin/vi/vi/v_ntext.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_ntext.c 8.120 (Berkeley) 8/15/94";
+static const char sccsid[] = "@(#)v_ntext.c 8.121 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_paragraph.c b/usr.bin/vi/vi/v_paragraph.c
index 590718dd7fdb7..6565cdfb5e9ab 100644
--- a/usr.bin/vi/vi/v_paragraph.c
+++ b/usr.bin/vi/vi/v_paragraph.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_paragraph.c 8.18 (Berkeley) 7/29/94";
+static const char sccsid[] = "@(#)v_paragraph.c 8.19 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_put.c b/usr.bin/vi/vi/v_put.c
index 8206d1621d351..90653068292ab 100644
--- a/usr.bin/vi/vi/v_put.c
+++ b/usr.bin/vi/vi/v_put.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_put.c 8.9 (Berkeley) 5/2/94";
+static const char sccsid[] = "@(#)v_put.c 8.10 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_redraw.c b/usr.bin/vi/vi/v_redraw.c
index 8f7054ca95228..393c01711ea7a 100644
--- a/usr.bin/vi/vi/v_redraw.c
+++ b/usr.bin/vi/vi/v_redraw.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_redraw.c 8.4 (Berkeley) 3/8/94";
+static const char sccsid[] = "@(#)v_redraw.c 8.5 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_replace.c b/usr.bin/vi/vi/v_replace.c
index 92540242bd51e..5daf17497b12a 100644
--- a/usr.bin/vi/vi/v_replace.c
+++ b/usr.bin/vi/vi/v_replace.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_replace.c 8.18 (Berkeley) 5/21/94";
+static const char sccsid[] = "@(#)v_replace.c 8.19 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_right.c b/usr.bin/vi/vi/v_right.c
index df7c85ca9fc8f..142ed7f6b4999 100644
--- a/usr.bin/vi/vi/v_right.c
+++ b/usr.bin/vi/vi/v_right.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_right.c 8.8 (Berkeley) 7/27/94";
+static const char sccsid[] = "@(#)v_right.c 8.9 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_screen.c b/usr.bin/vi/vi/v_screen.c
index 20ca6ba67a300..18212cf6bb583 100644
--- a/usr.bin/vi/vi/v_screen.c
+++ b/usr.bin/vi/vi/v_screen.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_screen.c 8.12 (Berkeley) 8/8/94";
+static const char sccsid[] = "@(#)v_screen.c 8.13 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_scroll.c b/usr.bin/vi/vi/v_scroll.c
index b381dc5505175..631b06e8b7268 100644
--- a/usr.bin/vi/vi/v_scroll.c
+++ b/usr.bin/vi/vi/v_scroll.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_scroll.c 8.20 (Berkeley) 7/27/94";
+static const char sccsid[] = "@(#)v_scroll.c 8.21 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_search.c b/usr.bin/vi/vi/v_search.c
index 2ba013ae91f2a..8a30cbe6e0b63 100644
--- a/usr.bin/vi/vi/v_search.c
+++ b/usr.bin/vi/vi/v_search.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_search.c 8.32 (Berkeley) 7/27/94";
+static const char sccsid[] = "@(#)v_search.c 8.33 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_section.c b/usr.bin/vi/vi/v_section.c
index 9bc06b6789955..098da18bdbdd7 100644
--- a/usr.bin/vi/vi/v_section.c
+++ b/usr.bin/vi/vi/v_section.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_section.c 8.10 (Berkeley) 7/27/94";
+static const char sccsid[] = "@(#)v_section.c 8.11 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_sentence.c b/usr.bin/vi/vi/v_sentence.c
index 87c6039ac3f5d..73175f95f15d8 100644
--- a/usr.bin/vi/vi/v_sentence.c
+++ b/usr.bin/vi/vi/v_sentence.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_sentence.c 8.15 (Berkeley) 7/27/94";
+static const char sccsid[] = "@(#)v_sentence.c 8.16 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_status.c b/usr.bin/vi/vi/v_status.c
index 5ea544c7e2a8b..7d5db718d1271 100644
--- a/usr.bin/vi/vi/v_status.c
+++ b/usr.bin/vi/vi/v_status.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_status.c 8.16 (Berkeley) 8/14/94";
+static const char sccsid[] = "@(#)v_status.c 8.17 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/param.h>
diff --git a/usr.bin/vi/vi/v_stop.c b/usr.bin/vi/vi/v_stop.c
index 1e865d97da4dd..e00152094efed 100644
--- a/usr.bin/vi/vi/v_stop.c
+++ b/usr.bin/vi/vi/v_stop.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_stop.c 8.7 (Berkeley) 3/8/94";
+static const char sccsid[] = "@(#)v_stop.c 8.8 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_text.c b/usr.bin/vi/vi/v_text.c
index e6c940a7bf93c..85aca5a6a867a 100644
--- a/usr.bin/vi/vi/v_text.c
+++ b/usr.bin/vi/vi/v_text.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_text.c 8.40 (Berkeley) 8/14/94";
+static const char sccsid[] = "@(#)v_text.c 8.42 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
@@ -614,10 +614,13 @@ v_change(sp, ep, vp)
LOG_CORRECT;
/*
- * Turn off the VM_RCM flags, inserting text has its own rules for
- * cursor positioning.
+ * 'c' can be combined with motion commands that set the resulting
+ * cursor position, i.e. "cG". Clear the VM_RCM flags and make the
+ * resulting cursor position stick, inserting text has its own rules
+ * for cursor positioning.
*/
F_CLR(vp, VM_RCM_MASK);
+ F_SET(vp, VM_RCM_SET);
/*
* If not in line mode and changing within a single line, the line
diff --git a/usr.bin/vi/vi/v_ulcase.c b/usr.bin/vi/vi/v_ulcase.c
index 9bf150fd3cbd5..12a6d74ab1caa 100644
--- a/usr.bin/vi/vi/v_ulcase.c
+++ b/usr.bin/vi/vi/v_ulcase.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_ulcase.c 8.8 (Berkeley) 7/15/94";
+static const char sccsid[] = "@(#)v_ulcase.c 8.9 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_undo.c b/usr.bin/vi/vi/v_undo.c
index 65dc715e189a4..38ab7eb005a17 100644
--- a/usr.bin/vi/vi/v_undo.c
+++ b/usr.bin/vi/vi/v_undo.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_undo.c 8.10 (Berkeley) 5/7/94";
+static const char sccsid[] = "@(#)v_undo.c 8.11 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_util.c b/usr.bin/vi/vi/v_util.c
index d7defa8c3db4f..dcbf576cbed4e 100644
--- a/usr.bin/vi/vi/v_util.c
+++ b/usr.bin/vi/vi/v_util.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_util.c 8.10 (Berkeley) 7/18/94";
+static const char sccsid[] = "@(#)v_util.c 8.11 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_word.c b/usr.bin/vi/vi/v_word.c
index 7c53fe98fd672..42b191865eb16 100644
--- a/usr.bin/vi/vi/v_word.c
+++ b/usr.bin/vi/vi/v_word.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_word.c 8.21 (Berkeley) 7/27/94";
+static const char sccsid[] = "@(#)v_word.c 8.22 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_xchar.c b/usr.bin/vi/vi/v_xchar.c
index 6bb317cd5f735..681742b1c85ba 100644
--- a/usr.bin/vi/vi/v_xchar.c
+++ b/usr.bin/vi/vi/v_xchar.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_xchar.c 8.8 (Berkeley) 5/21/94";
+static const char sccsid[] = "@(#)v_xchar.c 8.9 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_yank.c b/usr.bin/vi/vi/v_yank.c
index 14f99f57ce47a..28ae9a2cee27b 100644
--- a/usr.bin/vi/vi/v_yank.c
+++ b/usr.bin/vi/vi/v_yank.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_yank.c 8.14 (Berkeley) 5/17/94";
+static const char sccsid[] = "@(#)v_yank.c 8.15 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_z.c b/usr.bin/vi/vi/v_z.c
index ca780f4000558..27ae121f4fce9 100644
--- a/usr.bin/vi/vi/v_z.c
+++ b/usr.bin/vi/vi/v_z.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_z.c 8.16 (Berkeley) 7/17/94";
+static const char sccsid[] = "@(#)v_z.c 8.17 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/v_zexit.c b/usr.bin/vi/vi/v_zexit.c
index cd4aac715a358..6e5b332f6d058 100644
--- a/usr.bin/vi/vi/v_zexit.c
+++ b/usr.bin/vi/vi/v_zexit.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)v_zexit.c 8.11 (Berkeley) 8/4/94";
+static const char sccsid[] = "@(#)v_zexit.c 8.12 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/vcmd.c b/usr.bin/vi/vi/vcmd.c
index 59b6e8b34482c..aa284bfd56a43 100644
--- a/usr.bin/vi/vi/vcmd.c
+++ b/usr.bin/vi/vi/vcmd.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)vcmd.c 8.39 (Berkeley) 7/28/94";
+static const char sccsid[] = "@(#)vcmd.c 8.40 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>
diff --git a/usr.bin/vi/vi/vi.c b/usr.bin/vi/vi/vi.c
index 9e52eb1c88842..66f19092e57d4 100644
--- a/usr.bin/vi/vi/vi.c
+++ b/usr.bin/vi/vi/vi.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)vi.c 8.89 (Berkeley) 8/14/94";
+static const char sccsid[] = "@(#)vi.c 8.90 (Berkeley) 8/17/94";
#endif /* not lint */
#include <sys/types.h>