| 12938 | return vim.searchState_ || (vim.searchState_ = new SearchState()); |
| 12939 | } |
| 12940 | function dialog(cm, template, shortText, onClose, options) { |
| 12941 | if (cm.openDialog) { |
| 12942 | cm.openDialog(template, onClose, { bottom: true, value: options.value, |
| 12943 | onKeyDown: options.onKeyDown, onKeyUp: options.onKeyUp, |
| 12944 | selectValueOnOpen: false}); |
| 12945 | } |
| 12946 | else { |
| 12947 | onClose(prompt(shortText, '')); |
| 12948 | } |
| 12949 | } |
| 12950 | function splitBySlash(argString) { |
| 12951 | var slashes = findUnescapedSlashes(argString) || []; |
| 12952 | if (!slashes.length) return []; |