Commit 030247da74b7c930706985c0700b6f4b6b9eaeff

Authored by Imanol-Mikel Barba Sabariego
1 parent a6257bf9

HOME/END bug

git-svn-id: svn://imanolbarba.net/PAD@7 c2ee353e-ed0d-4329-bf56-03aec153487f
readline/src/pad/prac1/EditableBufferedReader.java
@@ -98,7 +98,7 @@ public class EditableBufferedReader extends BufferedReader @@ -98,7 +98,7 @@ public class EditableBufferedReader extends BufferedReader
98 if(line.getCursorPosition() != line.length()+1) 98 if(line.getCursorPosition() != line.length()+1)
99 { 99 {
100 insertSpace(); 100 insertSpace();
101 - } 101 + }
102 System.out.print(c); 102 System.out.print(c);
103 line.insertCharAt(c, line.getCursorPosition()-1); 103 line.insertCharAt(c, line.getCursorPosition()-1);
104 line.setCursorPosition(line.getCursorPosition()+1); 104 line.setCursorPosition(line.getCursorPosition()+1);
@@ -197,6 +197,7 @@ public class EditableBufferedReader extends BufferedReader @@ -197,6 +197,7 @@ public class EditableBufferedReader extends BufferedReader
197 try 197 try
198 { 198 {
199 int character = read(); 199 int character = read();
  200 + System.err.print(Integer.toHexString(character) + " \n");
200 switch(parseKey(character)) 201 switch(parseKey(character))
201 { 202 {
202 case ESCAPE_SEQUENCE: 203 case ESCAPE_SEQUENCE:
@@ -266,7 +267,6 @@ public class EditableBufferedReader extends BufferedReader @@ -266,7 +267,6 @@ public class EditableBufferedReader extends BufferedReader
266 //ignore 267 //ignore
267 break; 268 break;
268 } 269 }
269 -  
270 } 270 }
271 catch (IOException e) 271 catch (IOException e)
272 { 272 {