changeset 119:a78e0429bee2

*** empty log message ***
author pin
date Sun, 23 Dec 2007 18:03:46 +0900
parents ad836eeae5bd
children fa4085c9f2ad
files bin/remoteeditor/editors/RemoteEditor.class src/remoteeditor/editors/RemoteEditor.java src/remoteeditor/network/REPPacketReceive.java
diffstat 3 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
Binary file bin/remoteeditor/editors/RemoteEditor.class has changed
--- a/src/remoteeditor/editors/RemoteEditor.java	Sun Dec 23 17:45:22 2007 +0900
+++ b/src/remoteeditor/editors/RemoteEditor.java	Sun Dec 23 18:03:46 2007 +0900
@@ -190,7 +190,7 @@
 		int offset = document.getLineOffset(line-2);
 		int length = document.getLineLength(line-2);
 		String lineText = document.get(offset, length);
-		REPCommand usercmd = new REPCommand(REP.REPCMD_INSERT, mysid, myeid, myseq, line, lineText.length(), lineText);
+		REPCommand usercmd = new REPCommand(REP.REPCMD_REPLACE, mysid, myeid, myseq, line, lineText.length(), lineText);
 		repsend.send(usercmd);
 		
 		offset = document.getLineOffset(line-1);
--- a/src/remoteeditor/network/REPPacketReceive.java	Sun Dec 23 17:45:22 2007 +0900
+++ b/src/remoteeditor/network/REPPacketReceive.java	Sun Dec 23 18:03:46 2007 +0900
@@ -107,8 +107,6 @@
 			if(len == -1){				
 				socketchannel.close();
 				return null;
-			}else if(len == 0){
-				return null;
 			}
 		} catch (IOException e1) {
 			e1.printStackTrace();