Similar to setSelection , but will, if shift is held or the extending flag is set, move the head of the selection while leaving the anchor at its current place. pos2 is optional , and can be passed to ensure a region (for example a word or paragraph) will end up selected (in
(from: CodeMirror.Position, to?: CodeMirror.Position)
| 517 | pos2 is optional , and can be passed to ensure a region (for example a word or paragraph) will end up selected |
| 518 | (in addition to whatever lies between that region and the current anchor). */ |
| 519 | extendSelection(from: CodeMirror.Position, to?: CodeMirror.Position): void; |
| 520 | |
| 521 | /** Sets or clears the 'extending' flag , which acts similar to the shift key, |
| 522 | in that it will cause cursor movement and calls to extendSelection to leave the selection anchor in place. */ |
no outgoing calls
no test coverage detected