git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
double-click support
[fanfix.git]
/
src
/
jexer
/
teditor
/
Document.java
diff --git
a/src/jexer/teditor/Document.java
b/src/jexer/teditor/Document.java
index c8ab746096f20971871fe8da99efbe67dd4fcade..c84c20787e6453e987db5fcec7f01911b356e959 100644
(file)
--- a/
src/jexer/teditor/Document.java
+++ b/
src/jexer/teditor/Document.java
@@
-456,4
+456,13
@@
public class Document {
return n;
}
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();
+ }
+
}
}