aboutsummaryrefslogtreecommitdiff
path: root/editors/vi.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/vi.c')
-rw-r--r--editors/vi.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/editors/vi.c b/editors/vi.c
index 0ed9edd6e..c5a37d750 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -19,7 +19,7 @@
19 */ 19 */
20 20
21static const char vi_Version[] = 21static const char vi_Version[] =
22 "$Id: vi.c,v 1.35 2004/03/31 11:12:51 andersen Exp $"; 22 "$Id: vi.c,v 1.36 2004/04/14 17:51:09 andersen Exp $";
23 23
24/* 24/*
25 * To compile for standalone use: 25 * To compile for standalone use:
@@ -45,7 +45,7 @@ static const char vi_Version[] =
45 * An "ex" line oriented mode- maybe using "cmdedit" 45 * An "ex" line oriented mode- maybe using "cmdedit"
46 */ 46 */
47 47
48//---- Feature -------------- Bytes to immplement 48//---- Feature -------------- Bytes to implement
49#ifdef STANDALONE 49#ifdef STANDALONE
50#define vi_main main 50#define vi_main main
51#define CONFIG_FEATURE_VI_COLON // 4288 51#define CONFIG_FEATURE_VI_COLON // 4288
@@ -641,7 +641,7 @@ static Byte *get_address(Byte *p, int *b, int *e) // get two colon addrs, if pre
641 p = get_one_address(p, b); 641 p = get_one_address(p, b);
642 while (isblnk(*p)) 642 while (isblnk(*p))
643 p++; 643 p++;
644 if (*p == ',') { // is there a address seperator 644 if (*p == ',') { // is there a address separator
645 p++; 645 p++;
646 while (isblnk(*p)) 646 while (isblnk(*p))
647 p++; 647 p++;
@@ -1452,7 +1452,7 @@ static Byte *new_screen(int ro, int co)
1452 screen = (Byte *) xmalloc(screensize); 1452 screen = (Byte *) xmalloc(screensize);
1453 // initialize the new screen. assume this will be a empty file. 1453 // initialize the new screen. assume this will be a empty file.
1454 screen_erase(); 1454 screen_erase();
1455 // non-existant text[] lines start with a tilde (~). 1455 // non-existent text[] lines start with a tilde (~).
1456 for (li = 1; li < ro - 1; li++) { 1456 for (li = 1; li < ro - 1; li++) {
1457 screen[(li * co) + 0] = '~'; 1457 screen[(li * co) + 0] = '~';
1458 } 1458 }
@@ -2528,7 +2528,7 @@ static int file_write(Byte * fn, Byte * first, Byte * last)
2528 2528
2529//----- Terminal Drawing --------------------------------------- 2529//----- Terminal Drawing ---------------------------------------
2530// The terminal is made up of 'rows' line of 'columns' columns. 2530// The terminal is made up of 'rows' line of 'columns' columns.
2531// classicly this would be 24 x 80. 2531// classically this would be 24 x 80.
2532// screen coordinates 2532// screen coordinates
2533// 0,0 ... 0,79 2533// 0,0 ... 0,79
2534// 1,0 ... 1,79 2534// 1,0 ... 1,79
@@ -3222,7 +3222,7 @@ key_cmd_mode:
3222 case 'f': // f- forward to a user specified char 3222 case 'f': // f- forward to a user specified char
3223 last_forward_char = get_one_char(); // get the search char 3223 last_forward_char = get_one_char(); // get the search char
3224 // 3224 //
3225 // dont seperate these two commands. 'f' depends on ';' 3225 // dont separate these two commands. 'f' depends on ';'
3226 // 3226 //
3227 //**** fall thru to ... 'i' 3227 //**** fall thru to ... 'i'
3228 case ';': // ;- look at rest of line for last forward char 3228 case ';': // ;- look at rest of line for last forward char