vte: tune SGR handling

We definitely do not need to check the unset parameters so shorten the
loop so unparsed parameters are not checked.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-07-14 17:38:32 +02:00
parent 492ac8f72c
commit 7fb5c5c454

View File

@ -779,7 +779,7 @@ static void csi_attribute(struct kmscon_vte *vte)
{
unsigned int i;
for (i = 0; i < CSI_ARG_MAX; ++i) {
for (i = 0; i < vte->csi_argc; ++i) {
switch (vte->csi_argv[i]) {
case -1:
break;