There is not much to convert since the command takes no arguments,
and thus lpr is unused. The commit gets rid of the argc check which
is performed by lopsub and fixes a typo in the command summary:
s/input/insert.
[subcommand prev]
purpose = load the previous file of the playlist
+
+[subcommand bg]
+ purpose = enter insert mode
+ [description]
+ Only useful if called in command mode via a key binding. The default
+ key bindings map the colon key to this command, so pressing : in
+ command mode activates insert mode.
+ [/description]
}
EXPORT_PLAY_CMD_HANDLER(fg);
-static int com_bg(struct play_task *pt, int argc, __a_unused char **argv)
+static int com_bg(struct play_task *pt,
+ __a_unused struct lls_parse_result *lpr)
{
- if (argc != 1)
- return -E_PLAY_SYNTAX;
pt->background = true;
return 0;
}
+EXPORT_PLAY_CMD_HANDLER(bg);
static int com_jmp(struct play_task *pt, int argc, char **argv)
{
SF: play.c
SN: list of commands
---
-N: bg
-D: Enter input mode.
-U: bg
-H: Only useful if called in command mode via a key binding. The default key
-H: bindings map this command to the colon key, so pressing : in command mode
-H: activates insert mode.
----
N: jmp
D: Jump to position in current file.
U: jmp <percent>