mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 10:30:44 +01:00
CC logic cleanup
This commit is contained in:
@@ -347,14 +347,8 @@ public class CompletionPanel {
|
||||
// place the caret between '( and first ','
|
||||
int x = selectedSuggestion.indexOf(',');
|
||||
if(x == -1) {
|
||||
if(subWord.endsWith("(")) {
|
||||
// the case of single param methods with overloads shown initially, containing no ','
|
||||
textarea.setCaretPosition(insertionPosition);
|
||||
}
|
||||
else {
|
||||
// the case of single param methods with no overloads, containing no ','
|
||||
textarea.setCaretPosition(textarea.getCaretPosition() - 1);
|
||||
}
|
||||
// the case of single param methods, containing no ','
|
||||
textarea.setCaretPosition(textarea.getCaretPosition() - 1); // just before ')'
|
||||
} else {
|
||||
textarea.setCaretPosition(insertionPosition + x);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user