(query, ignoreCase, smartCase)
| 10551 | var originalQuery = getSearchState(cm).getQuery(); |
| 10552 | var originalScrollPos = cm.getScrollInfo(); |
| 10553 | function handleQuery(query, ignoreCase, smartCase) { |
| 10554 | vimGlobalState.searchHistoryController.pushInput(query); |
| 10555 | vimGlobalState.searchHistoryController.reset(); |
| 10556 | try { |
| 10557 | updateSearchQuery(cm, query, ignoreCase, smartCase); |
| 10558 | } catch (e) { |
| 10559 | showConfirm(cm, 'Invalid regex: ' + query); |
| 10560 | clearInputState(cm); |
| 10561 | return; |
| 10562 | } |
| 10563 | commandDispatcher.processMotion(cm, vim, { |
| 10564 | type: 'motion', |
| 10565 | motion: 'findNext', |
| 10566 | motionArgs: { forward: true, toJumplist: command.searchArgs.toJumplist } |
| 10567 | }); |
| 10568 | } |
| 10569 | function onPromptClose(query) { |
| 10570 | cm.scrollTo(originalScrollPos.left, originalScrollPos.top); |
| 10571 | handleQuery(query, true /** ignoreCase */, true /** smartCase */); |
no test coverage detected