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 <gnutt@nuttx.org>
This commit is contained in:
Anthony Merlino 2019-02-23 19:08:46 +00:00 committed by Gregory Nutt
parent 8ddb76323f
commit 9fbc93ec9f

View File

@ -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 */
{