Very frequent with Devanagari scripts ('matra's)
cleartimeout();
while (1) {
- buf[len] = ' ';
+ clearprompt();
+ buf[len] = '\0';
mvaddnwstr(y, x, buf, len + 1);
- move(y, x + pos);
if ((r = get_wch(ch)) != ERR) {
if (r == OK) {
/* Check if another file with same name exists */
if (faccessat(fd, tmp, F_OK, AT_SYMLINK_NOFOLLOW) != -1) {
/* File with the same name exists */
- printprompt("Press 'y' to overwrite: ");
+ printprompt("Press 'y' to overwrite");
cleartimeout();
r = getch();
settimeout();