]> git.lyx.org Git - lyx.git/blobdiff - src/lyxcursor.C
Hotfix to move cursor to the right when pressing M-m g x in text mode.
[lyx.git] / src / lyxcursor.C
index 4e02327fbc0b982a41bfb466522085f4ff7d39cd..47489a0fddea40b4c763a51bca35ab398dea20fd 100644 (file)
@@ -19,7 +19,7 @@
 
 LyXCursor::LyXCursor()
        : par_(0), pos_(0), boundary_(false),
-         x_(0), x_fix_(0), y_(0), iy_(0), row_(0)
+         x_(0), ix_(0), x_fix_(0), y_(0), iy_(0), row_(0)
 {}
 
 
@@ -70,6 +70,17 @@ int LyXCursor::x() const
 }
 
 
+void LyXCursor::ix(int n)
+{
+       ix_ = n;
+}
+
+int LyXCursor::ix() const
+{
+       return ix_;
+}
+
+
 void LyXCursor::x_fix(int i)
 {
        x_fix_ = i;