Merge "Revert "Revert "InlineEdit: Switch to using native jump-to-line addon"""
This commit is contained in:
@@ -258,20 +258,7 @@ public class EditScreen extends Screen {
|
|||||||
return new Runnable() {
|
return new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
String n = Window.prompt(EditConstants.I.gotoLineNumber(), "");
|
cm.execCommand("jumpToLine");
|
||||||
if (n != null) {
|
|
||||||
try {
|
|
||||||
int line = Integer.parseInt(n);
|
|
||||||
line--;
|
|
||||||
if (line >= 0) {
|
|
||||||
cm.scrollToLine(line);
|
|
||||||
}
|
|
||||||
} catch (NumberFormatException e) {
|
|
||||||
// ignore non valid numbers
|
|
||||||
// We don't want to popup another ugly dialog just to say
|
|
||||||
// "The number you've provided is invalid, try again"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ CM_ADDONS = [
|
|||||||
'edit/trailingspace.js',
|
'edit/trailingspace.js',
|
||||||
'scroll/annotatescrollbar.js',
|
'scroll/annotatescrollbar.js',
|
||||||
'scroll/simplescrollbars.js',
|
'scroll/simplescrollbars.js',
|
||||||
|
'search/jump-to-line.js',
|
||||||
'search/matchesonscrollbar.js',
|
'search/matchesonscrollbar.js',
|
||||||
'search/searchcursor.js',
|
'search/searchcursor.js',
|
||||||
'search/search.js',
|
'search/search.js',
|
||||||
|
|||||||
Reference in New Issue
Block a user