#35 CJK in editor working
[fanfix.git] / src / jexer / teditor / Document.java
index 159a95f6d95252cc4a01f7903d476ba784ce149a..56591244ef8abfe77dd98b92de09f2c0e7ada7f8 100644 (file)
@@ -413,7 +413,7 @@ public class Document {
      */
     public void enter() {
         dirty = true;
-        int cursor = lines.get(lineNumber).getCursor();
+        int cursor = lines.get(lineNumber).getRawCursor();
         String original = lines.get(lineNumber).getRawString();
         String firstLine = original.substring(0, cursor);
         String secondLine = original.substring(cursor);