Mercurial > hg > RemoteEditor > Eclipse
changeset 136:5b6afb5641ac
*** empty log message ***
author | pin |
---|---|
date | Tue, 22 Jan 2008 19:32:01 +0900 |
parents | cdcd9fcd5dbf |
children | debb9b2eca2d |
files | bin/remoteeditor/editors/RemoteEditor$1.class bin/remoteeditor/editors/RemoteEditor.class src/remoteeditor/editors/RemoteEditor.java |
diffstat | 3 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/remoteeditor/editors/RemoteEditor.java Tue Jan 22 18:57:36 2008 +0900 +++ b/src/remoteeditor/editors/RemoteEditor.java Tue Jan 22 19:32:01 2008 +0900 @@ -212,8 +212,9 @@ } catch (BadLocationException e) { e.printStackTrace(); } - undoString = lineText; - //StringBuffer sb = new StringBuffer(lineText); + StringBuffer sb = new StringBuffer(lineText); + sb.delete(offset, offset + inputText.length()); + undoString = sb.toString(); //sb.insert(offset, inputText); //if(replacedText == null){ // sb.delete(offset, inputText.length());