Skip to content
Snippets Groups Projects
Commit c4174e05 authored by dwelle's avatar dwelle
Browse files

fix typo in goLineLeftSmart

parent f7f04da4
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ export let commands = {
return cm.coordsChar({left: 0, top: top}, "div")
}, sel_move),
goLineLeftSmart: cm => cm.extendSelectionsBy(range => {
let top = cm.cursor(range.head, "div").top + 5
let top = cm.cursorCoords(range.head, "div").top + 5
let pos = cm.coordsChar({left: 0, top: top}, "div")
if (pos.ch < cm.getLine(pos.line).search(/\S/)) return lineStartSmart(cm, range.head)
return pos
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment