Upgrade CodeMirror to 5.10.1 and now support fullscreen, jump-to-line in editor
This commit is contained in:
2
public/vendor/codemirror/keymap/emacs.js
vendored
Executable file → Normal file
2
public/vendor/codemirror/keymap/emacs.js
vendored
Executable file → Normal file
@@ -377,7 +377,7 @@
|
||||
|
||||
getInput(cm, "Goto line", function(str) {
|
||||
var num;
|
||||
if (str && !isNaN(num = Number(str)) && num == num|0 && num > 0)
|
||||
if (str && !isNaN(num = Number(str)) && num == (num|0) && num > 0)
|
||||
cm.setCursor(num - 1);
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user