mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeEditor
synced 2024-11-15 03:23:45 +00:00
GotoLine: Don't throw an exception if the user cancels the prompt
Change-Id: I540ba492cf3acda01ad61800561cda0276f36c76
This commit is contained in:
parent
b5df74fb06
commit
41e9cee298
|
@ -120,7 +120,7 @@
|
||||||
},
|
},
|
||||||
aceGotoLineColumn: function () {
|
aceGotoLineColumn: function () {
|
||||||
var lineinput = prompt( 'Enter line number:', 'line:column' ),
|
var lineinput = prompt( 'Enter line number:', 'line:column' ),
|
||||||
matches = lineinput.split( ':' ),
|
matches = lineinput ? lineinput.split( ':' ) : [],
|
||||||
line = 0,
|
line = 0,
|
||||||
column = 0;
|
column = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue