Skip to content

Commit

Permalink
Got ViewContent and ModelContent mixed up again. Woops.
Browse files Browse the repository at this point in the history
  • Loading branch information
keforbes committed Jun 1, 2012
1 parent a388ed1 commit e218d37
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public void execute(EditorAdaptor editorAdaptor)
throws CommandExecutionException {
//grab current selection
TextRange selectionRange = editorAdaptor.getSelection().getRegion(editorAdaptor, 0);
selectionOffset = selectionRange.getLeftBound().getViewOffset();
selectionText = editorAdaptor.getViewContent().getText(selectionRange);
selectionOffset = selectionRange.getLeftBound().getModelOffset();
selectionText = editorAdaptor.getModelContent().getText(selectionRange);
replace(editorAdaptor.getModelContent(), selectionOffset, 1, selectionOffset);
editorAdaptor.changeMode(NormalMode.NAME);
}
Expand Down

0 comments on commit e218d37

Please sign in to comment.