diff --git a/pdex/src/processing/mode/experimental/CompletionPanel.java b/pdex/src/processing/mode/experimental/CompletionPanel.java index 5021b48d8..0e0bb70a6 100644 --- a/pdex/src/processing/mode/experimental/CompletionPanel.java +++ b/pdex/src/processing/mode/experimental/CompletionPanel.java @@ -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); }