Mercurial > hg > RemoteEditor > Eclipse
changeset 52:ec0bdbd7a8cf
*** empty log message ***
author | pin |
---|---|
date | Fri, 06 Apr 2007 05:36:21 +0900 |
parents | a7f5139f10b5 |
children | 2f6190300fdb |
files | bin/remoteeditor/editors/RemoteEditor.class src/remoteeditor/editors/RemoteEditor.java |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/remoteeditor/editors/RemoteEditor.java Fri Apr 06 05:33:13 2007 +0900 +++ b/src/remoteeditor/editors/RemoteEditor.java Fri Apr 06 05:36:21 2007 +0900 @@ -142,10 +142,10 @@ } public void changeText(int kindOfCmd, int lineNo, int LineLength, String text) throws Exception{ - final int offset = document.getLineOffset(lineNo); + final int offset = document.getLineOffset(lineNo-1); final String changedText = text; - final int replaceLength = document.getLineLength(lineNo); + final int replaceLength = document.getLineLength(lineNo-1); viewer.getTextWidget().getDisplay().syncExec(new Runnable() {