GotoLine: Don't throw an exception if the user cancels the prompt

Change-Id: I540ba492cf3acda01ad61800561cda0276f36c76
This commit is contained in:
Ed Sanders 2016-02-27 22:39:39 +00:00
parent b5df74fb06
commit 41e9cee298

View file

@ -120,7 +120,7 @@
},
aceGotoLineColumn: function () {
var lineinput = prompt( 'Enter line number:', 'line:column' ),
matches = lineinput.split( ':' ),
matches = lineinput ? lineinput.split( ':' ) : [],
line = 0,
column = 0;