]> git.lyx.org Git - lyx.git/blobdiff - src/lyxcursor.h
Hotfix to move cursor to the right when pressing M-m g x in text mode.
[lyx.git] / src / lyxcursor.h
index 9c37d0dff992c13ddd47cadc725814327b615475..fe3cc2842cc6af2cd158c6b781859f7b6acdec79 100644 (file)
@@ -44,6 +44,10 @@ public:
        ///
        int x() const;
        ///
+       void ix(int i);
+       ///
+       int ix() const;
+       ///
        void x_fix(int i);
        ///
        int x_fix() const;
@@ -68,6 +72,9 @@ private:
        bool boundary_;
        ///
        int x_;
+       /// the x position of the position before the inset when we put
+       /// the cursor on the end of the row before, otherwise equal to x.
+       int ix_;
        ///
        int x_fix_;
        ///