(cm)
| 12314 | } |
| 12315 | } |
| 12316 | function getHead(cm) { |
| 12317 | var cur = cm.getCursor('head'); |
| 12318 | if (cm.getSelection().length == 1) { |
| 12319 | // Small corner case when only 1 character is selected. The "real" |
| 12320 | // head is the left of head and anchor. |
| 12321 | cur = cursorMin(cur, cm.getCursor('anchor')); |
| 12322 | } |
| 12323 | return cur; |
| 12324 | } |
| 12325 | |
| 12326 | /** |
| 12327 | * If moveHead is set to false, the CodeMirror selection will not be |
no test coverage detected