Skip to content

Commit

Permalink
fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
nonpop committed Aug 4, 2015
1 parent 3469f5c commit c5e17d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wrapper.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit c5e17d2

Please sign in to comment.