(a, b)
| 1093 | // Compare two positions, return 0 if they are the same, a negative |
| 1094 | // number when a is less, and a positive number otherwise. |
| 1095 | function cmp(a, b) { |
| 1096 | return a.line - b.line || a.ch - b.ch |
| 1097 | } |
| 1098 | |
| 1099 | function equalCursorPos(a, b) { |
| 1100 | return a.sticky == b.sticky && cmp(a, b) == 0 |
no outgoing calls
no test coverage detected