| 1 |
Fromscip-debian debian arduino 2:1.8.19+dfsg1-5 arduino/patches/`debian-hacks/Use-old-rsyntaxtextarea.patch`#From.: Scott Howard <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 2 |
Datescip-debian debian arduino 2:1.8.19+dfsg1-5 arduino/patches/`debian-hacks/Use-old-rsyntaxtextarea.patch`#Date.: Wed, 28 Mar 2018 15:52:22 -0300 |
| 3 |
Subjectscip-debian debian arduino 2:1.8.19+dfsg1-5 arduino/patches/`debian-hacks/Use-old-rsyntaxtextarea.patch`#Subject.: Use old rsyntaxtextarea |
| 4 |
|
| 5 |
Forwarded: not-needed |
| 6 |
--- |
| 7 |
app/src/processing/app/EditorTab.java | 7 +++++-- |
| 8 |
1 file changed, 5 insertions(+), 2 deletions(-) |
| 9 |
|
| 10 |
diff --git a/app/src/processing/app/EditorTab.javascip-debian debian arduino 2:1.8.19+dfsg1-5 arduino/upstream/`app/src/processing/app/EditorTab.java`: b/app/src/processing/app/EditorTab.javascip-debian debian arduino 2:1.8.19+dfsg1-5 arduino/upstream/`app/src/processing/app/EditorTab.java`: |
| 11 |
index 59bfe3c..e671d42 100644 |
| 12 |
--- a/app/src/processing/app/EditorTab.java |
| 13 |
+++ b/app/src/processing/app/EditorTab.java |
| 14 |
@@ -137,7 +137,7 @@ public class EditorTab extends JPanel implements SketchFile.TextStorage { |
| 15 |
Gutter gutter = scrollPane.getGutter(); |
| 16 |
gutter.setBookmarkingEnabled(false); |
| 17 |
//gutter.setBookmarkIcon(CompletionsRenderer.getIcon(CompletionType.TEMPLATE)); |
| 18 |
|
| 19 |
+ //gutter.setIconRowHeaderInheritsGutterBackground(true); |
| 20 |
|
| 21 |
return scrollPane; |
| 22 |
} |
| 23 |
@@ -266,7 +266,10 @@ public class EditorTab extends JPanel implements SketchFile.TextStorage { |
| 24 |
referenceItem.setEnabled(referenceFile != null); |
| 25 |
|
| 26 |
int offset = textarea.getCaretPosition(); |
| 27 |
|
| 28 |
+ /* Use old RSyntaxVersion */ |
| 29 |
+ RSyntaxDocument doc = (RSyntaxDocument)textarea.getDocument(); |
| 30 |
+ org.fife.ui.rsyntaxtextarea.Token tokenlist = doc.getTokenListForLine(doc.getDefaultRootElement().getElementIndex(offset)); |
| 31 |
+ org.fife.ui.rsyntaxtextarea.Token token = RSyntaxUtilities.getTokenAtOffset(tokenlist, offset); |
| 32 |
if (token != null && token.isHyperlink()) { |
| 33 |
openURLItem.setEnabled(true); |
| 34 |
openURLItem.setActionCommand(token.getLexeme()); |