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:
parent
8ddb76323f
commit
9fbc93ec9f
@ -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 */
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user