changeset 49:cd196794b07f

*** empty log message ***
author pin
date Fri, 06 Apr 2007 05:17:34 +0900
parents 039451639710
children 301c2dd245a2
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
Binary file bin/remoteeditor/editors/RemoteEditor$1.class has changed
Binary file bin/remoteeditor/editors/RemoteEditor.class has changed
--- a/src/remoteeditor/editors/RemoteEditor.java	Fri Apr 06 05:09:48 2007 +0900
+++ b/src/remoteeditor/editors/RemoteEditor.java	Fri Apr 06 05:17:34 2007 +0900
@@ -153,7 +153,7 @@
 				try {
 					lock = true;
 					//document.replace(offset, replaceLength, changedText);
-					document.replace(offset, replaceLength, changedText);
+					document.replace(offset, replaceLength+1, changedText);
 					lock = false;
 				} catch (BadLocationException e) {
 					e.printStackTrace();
@@ -232,7 +232,7 @@
 	}
 
 	private void textInsert(int lineNo, int j, String text) throws BadLocationException {
-		final int offset = document.getLineOffset(lineNo - 1);
+		final int offset = document.getLineOffset(lineNo);
 		final String changedText = text;
 
 			//final int replaceLength = document.getLineLength(lineNo);