fix set port bug.

git-svn-id: svn://qnap.local/TwoTerm/branches/frameless@3095 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
This commit is contained in:
Kelvin Sherlock 2016-07-05 21:21:47 +00:00
parent c788e925c8
commit 7c621218f9

View File

@ -371,7 +371,7 @@ enum {
case StateSetPort1: case StateSetPort1:
// [ // [
if (c == ']') if (c == '[')
{ {
_state++; _state++;
} }
@ -434,10 +434,10 @@ enum {
-(void)keyDown:(NSEvent *)event screen:(Screen *)screen output:(OutputChannel *)output -(void)keyDown:(NSEvent *)event screen:(Screen *)screen output:(OutputChannel *)output
{ {
unsigned flags = [event modifierFlags]; NSEventModifierFlags flags = [event modifierFlags];
NSString *chars = [event charactersIgnoringModifiers]; NSString *chars = [event charactersIgnoringModifiers];
unsigned length = [chars length]; NSUInteger length = [chars length];
for (unsigned i = 0; i < length; ++i) for (unsigned i = 0; i < length; ++i)
{ {