Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Glossary - fix issues reported for copy glossary term:https://bugzill…
  • Loading branch information
Alex Eng committed Apr 12, 2012
1 parent b5ba2f6 commit 6c4e2a1
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -322,6 +322,7 @@ public void insertTextInCursorPosition(String suggestion)
String postCursor = textArea.getText().substring(textArea.getCursorPos(), textArea.getText().length());

textArea.setText(preCursor + suggestion + postCursor);
textArea.setCursorPos(textArea.getText().indexOf(suggestion) + suggestion.length());
}

@Override
Expand Down

0 comments on commit 6c4e2a1

Please sign in to comment.