static int c2n(int c, int order) {
if (c < 0 || c > 0xff)
return -1;
- if (c == ' ' || c == '\010' || c == '\177')
+ if (c == ' ' || c == '\b')
return 0;
if (order < 10) {
if (c >= '1' && c <= '9')
return "";
}
}
- if (button == 'H' || button == 'h')
- return dupstr("H");
- if (button == 'M' || button == 'm')
- return dupstr("M");
if (IS_CURSOR_MOVE(button)) {
move_cursor(button, &ui->hx, &ui->hy, ds->order, ds->order, 0);
return dupstr(buf);
}
+
+ if (button == 'H' || button == 'h')
+ return dupstr("H");
+ if (button == 'M' || button == 'm')
+ return dupstr("M");
+
return NULL;
}