mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue