Mercurial > hg > RemoteEditor > Eclipse
changeset 50:301c2dd245a2
*** empty log message ***
author | pin |
---|---|
date | Fri, 06 Apr 2007 05:28:05 +0900 (2007-04-05) |
parents | cd196794b07f |
children | a7f5139f10b5 |
files | bin/remoteeditor/editors/RemoteEditor$1.class bin/remoteeditor/editors/RemoteEditor.class src/remoteeditor/editors/RemoteEditor.java |
diffstat | 3 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/remoteeditor/editors/RemoteEditor.java Fri Apr 06 05:17:34 2007 +0900 +++ b/src/remoteeditor/editors/RemoteEditor.java Fri Apr 06 05:28:05 2007 +0900 @@ -153,7 +153,7 @@ try { lock = true; //document.replace(offset, replaceLength, changedText); - document.replace(offset, replaceLength+1, changedText); + document.replace(offset, replaceLength, changedText); lock = false; } catch (BadLocationException e) { e.printStackTrace(); @@ -256,7 +256,7 @@ int offset = document.getLineOffset(i); int length = document.getLineLength(i); String text = document.get(offset, length); - repsend.send(new REPCommand(REP.REP_INSERT_CMD, mysid, myeid, myseq, i+1, text.length(), text)); + repsend.send(new REPCommand(REP.REP_INSERT_CMD, mysid, myeid, myseq, i, text.length(), text)); } } }