We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f50509d + 0d5aacc commit 864e1fdCopy full SHA for 864e1fd
src/simplejavatexteditor/UI.java
@@ -138,7 +138,8 @@ public UI() {
138
@Override
139
public void keyReleased(KeyEvent e) {
140
setTitle("Untitled | " + SimpleJavaTextEditor.NAME + " [ Length: " + textArea.getText().length()
141
- + " Lines: " + (textArea.getText() + "|").split("\n").length + " ]");
+ + " Lines: " + (textArea.getText() + "|").split("\n").length
142
+ + " Words: " + textArea.getText().trim().split("\\s+").length + " ]");
143
}
144
145
0 commit comments