changeset 41:9fbf3cc59a76

*** empty log message ***
author pin
date Fri, 06 Apr 2007 03:04:41 +0900
parents 3368e6c94f11
children 4cabaaa70938
files bin/remoteeditor/editors/RemoteEditor.class src/remoteeditor/editors/RemoteEditor.java
diffstat 2 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
Binary file bin/remoteeditor/editors/RemoteEditor.class has changed
--- a/src/remoteeditor/editors/RemoteEditor.java	Fri Apr 06 02:58:59 2007 +0900
+++ b/src/remoteeditor/editors/RemoteEditor.java	Fri Apr 06 03:04:41 2007 +0900
@@ -140,7 +140,7 @@
 	}
 	
 	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);
 		viewer.getTextWidget().getDisplay().syncExec(new Runnable() {