MCPcopy Create free account
hub / github.com/BaseXdb/basex / prev

Method prev

basex-core/src/main/java/org/basex/gui/text/TextEditor.java:365–369  ·  view source on GitHub ↗

Moves one character back and returns the found character. A newline character is returned if the cursor is placed at the beginning of the text. @return previous character, or newline

()

Source from the content-addressed store, hash-verified

363 * @return previous character, or newline
364 */
365 private int prev() {
366 if(pos == 0) return '\n';
367 while(--pos > 0 && text[pos] < -64);
368 return curr();
369 }
370
371 /**
372 * Moves to the specified position or the end of the line.

Callers 7

nextWordMethod · 0.95
prevWordMethod · 0.95
backMethod · 0.95
bracketMethod · 0.95
closeElemMethod · 0.95
deletePrevMethod · 0.95
executeMethod · 0.45

Calls 1

currMethod · 0.95

Tested by

no test coverage detected