(cm, template, shortText, onClose, options)
| 4111 | return vim.searchState_ || (vim.searchState_ = new SearchState()); |
| 4112 | } |
| 4113 | function dialog(cm, template, shortText, onClose, options) { |
| 4114 | if (cm.openDialog) { |
| 4115 | cm.openDialog(template, onClose, { bottom: true, value: options.value, |
| 4116 | onKeyDown: options.onKeyDown, onKeyUp: options.onKeyUp, |
| 4117 | selectValueOnOpen: false}); |
| 4118 | } |
| 4119 | else { |
| 4120 | onClose(prompt(shortText, '')); |
| 4121 | } |
| 4122 | } |
| 4123 | function splitBySlash(argString) { |
| 4124 | return splitBySeparator(argString, '/'); |
| 4125 | } |