(query, ignoreCase, smartCase)
| 1786 | var originalQuery = getSearchState(cm).getQuery(); |
| 1787 | var originalScrollPos = cm.getScrollInfo(); |
| 1788 | function handleQuery(query, ignoreCase, smartCase) { |
| 1789 | vimGlobalState.searchHistoryController.pushInput(query); |
| 1790 | vimGlobalState.searchHistoryController.reset(); |
| 1791 | try { |
| 1792 | updateSearchQuery(cm, query, ignoreCase, smartCase); |
| 1793 | } catch (e) { |
| 1794 | showConfirm(cm, 'Invalid regex: ' + query); |
| 1795 | clearInputState(cm); |
| 1796 | return; |
| 1797 | } |
| 1798 | commandDispatcher.processMotion(cm, vim, { |
| 1799 | type: 'motion', |
| 1800 | motion: 'findNext', |
| 1801 | motionArgs: { forward: true, toJumplist: command.searchArgs.toJumplist } |
| 1802 | }); |
| 1803 | } |
| 1804 | function onPromptClose(query) { |
| 1805 | cm.scrollTo(originalScrollPos.left, originalScrollPos.top); |
| 1806 | handleQuery(query, true /** ignoreCase */, true /** smartCase */); |
no test coverage detected