##// END OF EJS Templates
Pressing Up while on the first line should move cursor to (0,0)...
Bradley M. Froehle -
Show More
@@ -7,6 +7,10 b' is (*please update this information when updating versions*)::'
7
7
8 CodeMirror2 4e244d252a26a2dba5446d44eb46adfb3c7f356a , tag : v2.32
8 CodeMirror2 4e244d252a26a2dba5446d44eb46adfb3c7f356a , tag : v2.32
9
9
10 The following CodeMirror commits have been cherry-picked into the source:
11
12 * 4ec8a34 Pressing Up while on the first line should move cursor to (0,0)
13
10 The current politics is not to ships the following folders of CodeMirrors :
14 The current politics is not to ships the following folders of CodeMirrors :
11
15
12 * doc/
16 * doc/
@@ -1738,7 +1738,7 b' var CodeMirror = (function() {'
1738 }
1738 }
1739 // Coords must be lineSpace-local
1739 // Coords must be lineSpace-local
1740 function coordsChar(x, y) {
1740 function coordsChar(x, y) {
1741 if (y < 0) y = 0;
1741 if (y < 0) return {line: 0, ch: 0};
1742 var th = textHeight(), cw = charWidth(), heightPos = displayOffset + Math.floor(y / th);
1742 var th = textHeight(), cw = charWidth(), heightPos = displayOffset + Math.floor(y / th);
1743 var lineNo = lineAtHeight(doc, heightPos);
1743 var lineNo = lineAtHeight(doc, heightPos);
1744 if (lineNo >= doc.size) return {line: doc.size - 1, ch: getLine(doc.size - 1).text.length};
1744 if (lineNo >= doc.size) return {line: doc.size - 1, ch: getLine(doc.size - 1).text.length};
General Comments 0
You need to be logged in to leave comments. Login now