This commit is contained in:
Kristian Setälä 2015-08-04 10:14:31 +03:00
parent 3469f5ce28
commit c5e17d2436
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ bool print_status(XKeyboard& xkb, string format) {
stringstream r; // resulting string
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]) {
case 'c':
r << xkb.currentGroupNum();