Highlight matches and move cursor during interactive search.
Maintains search state across invocations. On arrow keys, changes search direction; on other input, resets state. Highlights the next match in the buffer and moves the cursor there, restoring previous highlight as needed.
- Parameters
-
| [in] | query | NUL-terminated search string (may be empty). |
| [in] | key | Last key pressed to drive search behavior. |
- Postcondition
- Cursor, row highlighting, and scroll offset may change.
- See also
- editorFind(), editorRowRxToCx()