Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125039
b: refs/heads/master
c: a59c0d6
h: refs/heads/master
i:
  125037: fbe14af
  125035: 4bf92e9
  125031: f99585b
  125023: 88c056f
v: v3
  • Loading branch information
Joe Peterson authored and Linus Torvalds committed Jan 2, 2009
1 parent 999bd27 commit 7a35844
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fc6f6238226e6d1248e1967eae2bf556eaf3ac17
refs/heads/master: a59c0d6f14315a3f300f6f3786137213727e4c47
24 changes: 15 additions & 9 deletions trunk/drivers/char/n_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,12 @@ static int do_output_char(unsigned char c, struct tty_struct *tty, int space)
tty->column--;
break;
default:
if (O_OLCUC(tty))
c = toupper(c);
if (!iscntrl(c) && !is_continuation(c, tty))
tty->column++;
if (!iscntrl(c)) {
if (O_OLCUC(tty))
c = toupper(c);
if (!is_continuation(c, tty))
tty->column++;
}
break;
}

Expand Down Expand Up @@ -425,7 +427,9 @@ static ssize_t process_output_block(struct tty_struct *tty,
nr = space;

for (i = 0, cp = buf; i < nr; i++, cp++) {
switch (*cp) {
unsigned char c = *cp;

switch (c) {
case '\n':
if (O_ONLRET(tty))
tty->column = 0;
Expand All @@ -447,10 +451,12 @@ static ssize_t process_output_block(struct tty_struct *tty,
tty->column--;
break;
default:
if (O_OLCUC(tty))
goto break_out;
if (!iscntrl(*cp))
tty->column++;
if (!iscntrl(c)) {
if (O_OLCUC(tty))
goto break_out;
if (!is_continuation(c, tty))
tty->column++;
}
break;
}
}
Expand Down

0 comments on commit 7a35844

Please sign in to comment.