rollIntoView(cursor.from(), 20);
                return;
            }
            
            // If not found, wrap to end and search backwards
            const lastLine = editor.lastLine();
            const endPos = {line: lastLine, ch: editor.getLine(lastLine).length};
            const wrapCursor = editor.getSearchCursor(query, endPos);
            
            if (wrapCursor.findPrevious()) {
                editor.setSelection(wrapCursor.from(), wrapCursor.to());
                editor.scrollIntoVi