[keyboard] Fix group-switcher multiplying

FIXES #1556
This commit is contained in:
Adriaan de Groot 2020-10-30 11:05:15 +01:00
parent c36aa43f86
commit 8457a00ad0

View File

@ -108,7 +108,7 @@ xkbmap_query_grp_option()
//it's either in the end of line or before the other option so \s or ,
int lastIndex = outputLine.indexOf( QRegExp( "[\\s,]" ), index );
return outputLine.mid( index, lastIndex - 1 );
return outputLine.mid( index, lastIndex - index );
}
AdditionalLayoutInfo