From 9fbc93ec9f343d316e4c37edae14ea5e045bb243 Mon Sep 17 00:00:00 2001 From: Anthony Merlino Date: Sat, 23 Feb 2019 19:08:46 +0000 Subject: [PATCH] Merged in antmerlino/apps/vi-build-fix (pull request #169) system/vi: Condition KEY_CMDMODE_REPEAT with CONFIG_SYSTEM_VI_INCLUDE_COMMAND_REPEAT to avoid build error when option is not selected. Approved-by: Gregory Nutt --- system/vi/vi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/vi/vi.c b/system/vi/vi.c index 7cbf9ec9f..fb4c2f1d0 100644 --- a/system/vi/vi.c +++ b/system/vi/vi.c @@ -4121,6 +4121,7 @@ static void vi_cmd_mode(FAR struct vi_s *vi) } break; +#ifdef CONFIG_SYSTEM_VI_INCLUDE_COMMAND_REPEAT case KEY_CMDMODE_REPEAT: /* Repeat the last command */ { if (vi->cmdcount < CMD_BUFSIZE) @@ -4137,6 +4138,7 @@ static void vi_cmd_mode(FAR struct vi_s *vi) } } break; +#endif case KEY_CMDMODE_GOTO: /* Go to line specified by the accumulated value */ {