fix #2
This commit is contained in:
parent
3469f5ce28
commit
c5e17d2436
|
@ -59,7 +59,7 @@ bool print_status(XKeyboard& xkb, string format) {
|
||||||
stringstream r; // resulting string
|
stringstream r; // resulting string
|
||||||
|
|
||||||
for (size_t i = 0; i < format.length(); ++i) {
|
for (size_t i = 0; i < format.length(); ++i) {
|
||||||
if (i < format.length()-2 && format[i] == '%') {
|
if (i < format.length()-1 && format[i] == '%') {
|
||||||
switch (format[i+1]) {
|
switch (format[i+1]) {
|
||||||
case 'c':
|
case 'c':
|
||||||
r << xkb.currentGroupNum();
|
r << xkb.currentGroupNum();
|
||||||
|
|
Loading…
Reference in New Issue