diff options
-rw-r--r-- | editors/vi.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/editors/vi.c b/editors/vi.c index 065a1068e..5e5e13111 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -345,7 +345,8 @@ struct globals { | |||
345 | 345 | ||
346 | /* a few references only */ | 346 | /* a few references only */ |
347 | #if ENABLE_FEATURE_VI_YANKMARK | 347 | #if ENABLE_FEATURE_VI_YANKMARK |
348 | int YDreg, Ureg; // default delete register and orig line for "U" | 348 | smalluint YDreg;//,Ureg;// default delete register and orig line for "U" |
349 | #define Ureg 27 | ||
349 | char *reg[28]; // named register a-z, "D", and "U" 0-25,26,27 | 350 | char *reg[28]; // named register a-z, "D", and "U" 0-25,26,27 |
350 | char *mark[28]; // user marks points somewhere in text[]- a-z and previous context '' | 351 | char *mark[28]; // user marks points somewhere in text[]- a-z and previous context '' |
351 | char *context_start, *context_end; | 352 | char *context_start, *context_end; |
@@ -455,7 +456,7 @@ struct globals { | |||
455 | #define format_edit_status__tot (G.format_edit_status__tot) | 456 | #define format_edit_status__tot (G.format_edit_status__tot) |
456 | 457 | ||
457 | #define YDreg (G.YDreg ) | 458 | #define YDreg (G.YDreg ) |
458 | #define Ureg (G.Ureg ) | 459 | //#define Ureg (G.Ureg ) |
459 | #define mark (G.mark ) | 460 | #define mark (G.mark ) |
460 | #define context_start (G.context_start ) | 461 | #define context_start (G.context_start ) |
461 | #define context_end (G.context_end ) | 462 | #define context_end (G.context_end ) |
@@ -794,7 +795,7 @@ static void edit_file(char *fn) | |||
794 | 795 | ||
795 | #if ENABLE_FEATURE_VI_YANKMARK | 796 | #if ENABLE_FEATURE_VI_YANKMARK |
796 | YDreg = 26; // default Yank/Delete reg | 797 | YDreg = 26; // default Yank/Delete reg |
797 | Ureg = 27; // hold orig line for "U" cmd | 798 | // Ureg = 27; - const // hold orig line for "U" cmd |
798 | mark[26] = mark[27] = text; // init "previous context" | 799 | mark[26] = mark[27] = text; // init "previous context" |
799 | #endif | 800 | #endif |
800 | 801 | ||
@@ -4174,8 +4175,8 @@ static void do_cmd(int c) | |||
4174 | if (*p == '\n') | 4175 | if (*p == '\n') |
4175 | cnt++; | 4176 | cnt++; |
4176 | } | 4177 | } |
4177 | status_line("%s %d lines (%d chars) using [%c]", | 4178 | status_line("%s %u lines (%u chars) using [%c]", |
4178 | buf, cnt, strlen(reg[YDreg]), what_reg()); | 4179 | buf, cnt, (unsigned)strlen(reg[YDreg]), what_reg()); |
4179 | #endif | 4180 | #endif |
4180 | end_cmd_q(); // stop adding to q | 4181 | end_cmd_q(); // stop adding to q |
4181 | } | 4182 | } |