Parcourir la source

Handle multi-byte: 2 codepoints single column

Very frequent with Devanagari scripts ('matra's)
master
Arun Prakash Jana il y a 7 ans
Parent
révision
e8cf0dc663
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: A75979F35C080412
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. +3
    -3
      nnn.c

+ 3
- 3
nnn.c Voir le fichier

@@ -1024,9 +1024,9 @@ xreadline(char *fname)
cleartimeout(); cleartimeout();


while (1) { while (1) {
buf[len] = ' '; clearprompt();
buf[len] = '\0';
mvaddnwstr(y, x, buf, len + 1); mvaddnwstr(y, x, buf, len + 1);
move(y, x + pos);


if ((r = get_wch(ch)) != ERR) { if ((r = get_wch(ch)) != ERR) {
if (r == OK) { if (r == OK) {
@@ -2606,7 +2606,7 @@ nochange:
/* Check if another file with same name exists */ /* Check if another file with same name exists */
if (faccessat(fd, tmp, F_OK, AT_SYMLINK_NOFOLLOW) != -1) { if (faccessat(fd, tmp, F_OK, AT_SYMLINK_NOFOLLOW) != -1) {
/* File with the same name exists */ /* File with the same name exists */
printprompt("Press 'y' to overwrite: "); printprompt("Press 'y' to overwrite");
cleartimeout(); cleartimeout();
r = getch(); r = getch();
settimeout(); settimeout();


||||||
x
 
000:0
Chargement…
Annuler
Enregistrer