Bug fixes
[nikiroo-utils.git] / src / jexer / teditor / Document.java
index c8ab746096f20971871fe8da99efbe67dd4fcade..c84c20787e6453e987db5fcec7f01911b356e959 100644 (file)
@@ -456,4 +456,13 @@ public class Document {
         return n;
     }
 
+    /**
+     * Get the current line length.
+     *
+     * @return the number of cells needed to display the current line
+     */
+    public int getLineLength() {
+        return lines.get(lineNumber).getDisplayLength();
+    }
+
 }