]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfunc.C
architectural changes to tex2lyx
[lyx.git] / src / lyxfunc.C
index 1ca0cdce07b0926aa2752f540e3801858d1449fa..750d2c210026a8141f171e64645863c7ff3902b0 100644 (file)
@@ -115,12 +115,9 @@ LyXFunc::LyXFunc(LyXView * o)
 void LyXFunc::moveCursorUpdate()
 {
        LyXText * lt = view()->text;
-       if (lt->selection.mark()) {
+       if (lt->selection.mark())
                lt->setSelection();
-               if (!lt->isInInset())
-                   view()->repaint();
-       }
-       view()->update(lt, BufferView::SELECT);
+       view()->update();
        view()->switchKeyMap();
 }
 
@@ -139,7 +136,7 @@ void LyXFunc::handleKeyFunc(kb_action action)
        // actions
        keyseq.clear();
        // copied verbatim from do_accent_char
-       view()->update(view()->getLyXText(), BufferView::SELECT);
+       view()->update();
        view()->getLyXText()->selection.cursor = view()->getLyXText()->cursor;
 }
 
@@ -918,7 +915,7 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
 #endif
                                        moveCursorUpdate();
                                } else {
-                                       view()->update(view()->text, BufferView::SELECT);
+                                       view()->update();
                                }
                                owner->clearMessage();
                                goto exit_with_message;
@@ -1026,7 +1023,7 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
 
        case LFUN_PREFIX:
                if (view()->available() && !view()->theLockingInset())
-                       view()->update(view()->text, BufferView::SELECT);
+                       view()->update();
                owner->message(keyseq.printOptions());
                break;
 
@@ -1535,7 +1532,7 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
                // if values really changed...but not very important right now. (Lgb)
                // All visible buffers will need resize
                view()->resize();
-               view()->repaint();
+               view()->update();
        }
        break;
 
@@ -1574,7 +1571,7 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
 #endif
                }
 
-               view()->repaint();
+               view()->update();
                break;
        }