]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfunc.C
make a CURSOR update if we inserted a character (fix #312).
[lyx.git] / src / lyxfunc.C
index 5b9e126da3731d9cbdfa6f3b00a8b201881001b9..af1d9f9571da9494c84adde14f1591293fe653c2 100644 (file)
@@ -354,6 +354,11 @@ FuncStatus LyXFunc::getStatus(kb_action action,
        FuncStatus flag;
        Buffer * buf = owner->buffer();
 
+       if (action == LFUN_NOACTION) {
+               setStatusMessage(N_("Nothing to do"));
+               return flag.disabled(true);
+       }
+
        if (action == LFUN_UNKNOWN_ACTION) {
                setStatusMessage(N_("Unknown action"));
                return flag.unknown(true);
@@ -917,6 +922,8 @@ string const LyXFunc::dispatch(kb_action action, string argument)
                                        TEXT()->cursorUp(owner->view());
                                        moveCursorUpdate(true, false);
                                        owner->showState();
+                               } else {
+                                       owner->view()->update(TEXT(), BufferView::SELECT|BufferView::FITCUR);
                                }
                                goto exit_with_message;
                        } else if (result == UpdatableInset::FINISHED_DOWN) {
@@ -1408,8 +1415,8 @@ string const LyXFunc::dispatch(kb_action action, string argument)
                                            << id << "]" << endl;
                        break;
                } else {
-                       lyxerr << "Paragraph " << par->id()
-                              << " found." << endl;
+                       lyxerr[Debug::INFO] << "Paragraph " << par->id()
+                                           << " found." << endl;
                }
 
                if (owner->view()->theLockingInset())