From 41e9cee2985a02f57a1e4eeb7bfeb378937968f9 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Sat, 27 Feb 2016 22:39:39 +0000 Subject: [PATCH] GotoLine: Don't throw an exception if the user cancels the prompt Change-Id: I540ba492cf3acda01ad61800561cda0276f36c76 --- modules/jquery.codeEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/jquery.codeEditor.js b/modules/jquery.codeEditor.js index b3a5457a..b6914b35 100644 --- a/modules/jquery.codeEditor.js +++ b/modules/jquery.codeEditor.js @@ -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;