commit 4648f39a1e18916f8f5956fa8e1243516a67aad0
Author: Juergen Spitzmueller <[email protected]>
Date:   Thu Sep 20 11:11:44 2018 +0200

    info-insert without arg is valid
    
    it opens the info dialog.
---
 src/Text3.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/Text3.cpp b/src/Text3.cpp
index 9cef669..de79583 100644
--- a/src/Text3.cpp
+++ b/src/Text3.cpp
@@ -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;

Reply via email to