mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 18:35:37 +01:00
text insert bug fix
This commit is contained in:
@@ -98,8 +98,9 @@ public class CompletionPanel {
|
||||
public boolean insertSelection() {
|
||||
if (completionList.getSelectedValue() != null) {
|
||||
try {
|
||||
final String selectedSuggestion = ((CompletionCandidate) completionList
|
||||
String selectedSuggestion = ((CompletionCandidate) completionList
|
||||
.getSelectedValue()).getCompletionString().substring(subWord.length());
|
||||
System.err.println(subWord+" <= subword,Inserting suggestion=> " + selectedSuggestion);
|
||||
textarea.getDocument().insertString(insertionPosition,
|
||||
selectedSuggestion, null);
|
||||
textarea.setCaretPosition(insertionPosition
|
||||
|
||||
Reference in New Issue
Block a user