info-insert without arg is valid

it opens the info dialog.
This commit is contained in:
Juergen Spitzmueller 2018-09-20 11:11:44 +02:00
parent 92bfa07a62
commit 4648f39a1e

View File

@ -2947,7 +2947,8 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
break;
case LFUN_INFO_INSERT:
code = INFO_CODE;
enable = infoparams.validateArgument(cur.buffer(), cmd.argument(), true);
enable = cmd.argument().empty()
|| infoparams.validateArgument(cur.buffer(), cmd.argument(), true);
break;
case LFUN_ARGUMENT_INSERT: {
code = ARG_CODE;