case NANO_HOME_KEY:
case KEY_HOME:
x = x_left;
- nanoget_repaint(buf, inputbuf, x);
break;
case NANO_END_KEY:
case KEY_END:
x = x_left + strlen(inputbuf);
- nanoget_repaint(buf, inputbuf, x);
break;
case KEY_RIGHT:
case NANO_FORWARD_KEY:
strlen(inputbuf) - (x - x_left) - 1);
inputbuf[strlen(inputbuf) - 1] = 0;
}
- nanoget_repaint(buf, inputbuf, x);
break;
case NANO_CONTROL_K:
case NANO_CONTROL_U:
*inputbuf = 0;
x = x_left;
- nanoget_repaint(buf, inputbuf, x);
break;
case KEY_BACKSPACE:
case 127:
}
if (x > strlen(buf))
x--;
- nanoget_repaint(buf, inputbuf, x);
break;
#ifndef DISABLE_TABCOMP
case NANO_CONTROL_I:
x += shift;
if (x - x_left > strlen(inputbuf))
x = strlen(inputbuf) + x_left;
- nanoget_repaint(buf, inputbuf, x);
}
break;
#endif
switch (kbinput = wgetch(edit)) {
case 'F':
x = x_left + strlen(inputbuf);
- nanoget_repaint(buf, inputbuf, x);
break;
case 'H':
x = x_left;
- nanoget_repaint(buf, inputbuf, x);
break;
}
break;
case '1':
case '7':
x = x_left;
- nanoget_repaint(buf, inputbuf, x);
goto skip_tilde;
case '3':
do_deletekey:
strlen(inputbuf) - (x - x_left) - 1);
inputbuf[strlen(inputbuf) - 1] = 0;
}
- nanoget_repaint(buf, inputbuf, x);
goto skip_tilde;
case '4':
case '8':
x = x_left + strlen(inputbuf);
- nanoget_repaint(buf, inputbuf, x);
goto skip_tilde;
skip_tilde:
nodelay(edit, TRUE);
}
}
- nanoget_repaint(buf, inputbuf, x);
break;
default:
x++;
- nanoget_repaint(buf, inputbuf, x);
#ifdef DEBUG
fprintf(stderr, _("input \'%c\' (%d)\n"), kbinput, kbinput);
#endif
}
+ nanoget_repaint(buf, inputbuf, x);
wrefresh(bottomwin);
}