Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Glossary - fix issues reported for copy glossary term:https://bugzill…

  • Loading branch information...
commit 6c4e2a170b37b5cf23d8b12a9178f39496d91b33 1 parent b5ba2f6
@aeng aeng authored
View
1  server/zanata-war/src/main/java/org/zanata/webtrans/client/ui/Editor.java
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.