diff options
author | Paul Fox | 2005-10-09 14:26:26 +0000 |
---|---|---|
committer | Paul Fox | 2005-10-09 14:26:26 +0000 |
commit | 90372ed51a4a396715dfefef4c3716e6b2ceca11 (patch) | |
tree | ea936cbf2485760934dde5f8828aad9b0c620b50 /editors/vi.c | |
parent | ae907f38f0b35867795befa04640f7346c6be522 (diff) | |
download | busybox-90372ed51a4a396715dfefef4c3716e6b2ceca11.zip busybox-90372ed51a4a396715dfefef4c3716e6b2ceca11.tar.gz |
make Hit_Return() available when CONFIG_FEATURE_VI_COLON is off. it's
needed elsewhere as well now.
Diffstat (limited to 'editors/vi.c')
-rw-r--r-- | editors/vi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editors/vi.c b/editors/vi.c index 76e4d66..cc23325 100644 --- a/editors/vi.c +++ b/editors/vi.c @@ -284,12 +284,13 @@ static void refresh(int); // update the terminal from screen[] static void Indicate_Error(void); // use flash or beep to indicate error #define indicate_error(c) Indicate_Error() +static void Hit_Return(void); + #ifdef CONFIG_FEATURE_VI_SEARCH static Byte *char_search(Byte *, Byte *, int, int); // search for pattern starting at p static int mycmp(Byte *, Byte *, int); // string cmp based in "ignorecase" #endif /* CONFIG_FEATURE_VI_SEARCH */ #ifdef CONFIG_FEATURE_VI_COLON -static void Hit_Return(void); static Byte *get_one_address(Byte *, int *); // get colon addr, if present static Byte *get_address(Byte *, int *, int *); // get two colon addrs, if present static void colon(Byte *); // execute the "colon" mode cmds @@ -1146,6 +1147,7 @@ colon_s_fail: psb(":s expression missing delimiters"); #endif } +#endif /* CONFIG_FEATURE_VI_COLON */ static void Hit_Return(void) { @@ -1158,7 +1160,6 @@ static void Hit_Return(void) ; redraw(TRUE); // force redraw all } -#endif /* CONFIG_FEATURE_VI_COLON */ //----- Synchronize the cursor to Dot -------------------------- static void sync_cursor(Byte * d, int *row, int *col) |