git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#63 add to radiobutton API
[nikiroo-utils.git]
/
src
/
jexer
/
teditor
/
Document.java
diff --git
a/src/jexer/teditor/Document.java
b/src/jexer/teditor/Document.java
index 2abfef6635f3c1877fc733ee36ea8c67d01160b6..ffbe0816bd1e80b2c4639e7253b8b4dc3f50b8eb 100644
(file)
--- a/
src/jexer/teditor/Document.java
+++ b/
src/jexer/teditor/Document.java
@@
-362,7
+362,7
@@
public class Document {
// If at the beginning of a word already, push past it.
if ((getChar() != -1)
&& (getRawLine().length() > 0)
// If at the beginning of a word already, push past it.
if ((getChar() != -1)
&& (getRawLine().length() > 0)
- && !Character.is
S
pace((char) getChar())
+ && !Character.is
Whites
pace((char) getChar())
) {
left();
}
) {
left();
}
@@
-370,7
+370,7
@@
public class Document {
// int line = lineNumber;
while ((getChar() == -1)
|| (getRawLine().length() == 0)
// int line = lineNumber;
while ((getChar() == -1)
|| (getRawLine().length() == 0)
- || Character.is
S
pace((char) getChar())
+ || Character.is
Whites
pace((char) getChar())
) {
if (left() == false) {
return;
) {
if (left() == false) {
return;
@@
-380,12
+380,12
@@
public class Document {
assert (getChar() != -1);
assert (getChar() != -1);
- if (!Character.is
S
pace((char) getChar())
+ if (!Character.is
Whites
pace((char) getChar())
&& (getRawLine().length() > 0)
) {
// Advance until at the beginning of the document or a whitespace
// is encountered.
&& (getRawLine().length() > 0)
) {
// Advance until at the beginning of the document or a whitespace
// is encountered.
- while (!Character.is
S
pace((char) getChar())) {
+ while (!Character.is
Whites
pace((char) getChar())) {
int line = lineNumber;
if (left() == false) {
// End of document, bail out.
int line = lineNumber;
if (left() == false) {
// End of document, bail out.
@@
-418,7
+418,7
@@
public class Document {
}
if (lineNumber != line) {
// We wrapped a line. Here that counts as whitespace.
}
if (lineNumber != line) {
// We wrapped a line. Here that counts as whitespace.
- if (!Character.is
S
pace((char) getChar())) {
+ if (!Character.is
Whites
pace((char) getChar())) {
// We found a character immediately after the line.
// Done!
return;
// We found a character immediately after the line.
// Done!
return;
@@
-429,12
+429,12
@@
public class Document {
}
assert (getChar() != -1);
}
assert (getChar() != -1);
- if (!Character.is
S
pace((char) getChar())
+ if (!Character.is
Whites
pace((char) getChar())
&& (getRawLine().length() > 0)
) {
// Advance until at the end of the document or a whitespace is
// encountered.
&& (getRawLine().length() > 0)
) {
// Advance until at the end of the document or a whitespace is
// encountered.
- while (!Character.is
S
pace((char) getChar())) {
+ while (!Character.is
Whites
pace((char) getChar())) {
line = lineNumber;
if (right() == false) {
// End of document, bail out.
line = lineNumber;
if (right() == false) {
// End of document, bail out.
@@
-442,7
+442,7
@@
public class Document {
}
if (lineNumber != line) {
// We wrapped a line. Here that counts as whitespace.
}
if (lineNumber != line) {
// We wrapped a line. Here that counts as whitespace.
- if (!Character.is
S
pace((char) getChar())
+ if (!Character.is
Whites
pace((char) getChar())
&& (getRawLine().length() > 0)
) {
// We found a character immediately after the line.
&& (getRawLine().length() > 0)
) {
// We found a character immediately after the line.
@@
-462,7
+462,7
@@
public class Document {
}
if (lineNumber != line) {
// We wrapped a line. Here that counts as whitespace.
}
if (lineNumber != line) {
// We wrapped a line. Here that counts as whitespace.
- if (!Character.is
S
pace((char) getChar())) {
+ if (!Character.is
Whites
pace((char) getChar())) {
// We found a character immediately after the line.
// Done!
return;
// We found a character immediately after the line.
// Done!
return;
@@
-473,10
+473,10
@@
public class Document {
}
assert (getChar() != -1);
}
assert (getChar() != -1);
- if (Character.is
S
pace((char) getChar())) {
+ if (Character.is
Whites
pace((char) getChar())) {
// Advance until at the end of the document or a non-whitespace
// is encountered.
// Advance until at the end of the document or a non-whitespace
// is encountered.
- while (Character.is
S
pace((char) getChar())) {
+ while (Character.is
Whites
pace((char) getChar())) {
if (right() == false) {
// End of document, bail out.
return;
if (right() == false) {
// End of document, bail out.
return;