Sets a new text. @param txt new text @return true if text has changed
(final byte[] txt)
| 69 | * @return {@code true} if text has changed |
| 70 | */ |
| 71 | boolean text(final byte[] txt) { |
| 72 | if(eq(txt, text)) return false; |
| 73 | final int tl = txt.length; |
| 74 | text = txt; |
| 75 | lines = -1; |
| 76 | noSelect(); |
| 77 | search(searchContext, false); |
| 78 | if(pos > tl) pos = tl; |
| 79 | return true; |
| 80 | } |
| 81 | |
| 82 | /** |
| 83 | * Sets a new search context. |