diff options
| -rwxr-xr-x | scripts/alg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/alg b/scripts/alg index 54839b4..99becd8 100755 --- a/scripts/alg +++ b/scripts/alg | |||
| @@ -471,9 +471,9 @@ int edit(struct node *n) { | |||
| 471 | int d = 1; | 471 | int d = 1; |
| 472 | if (!is_terminal(n)) { | 472 | if (!is_terminal(n)) { |
| 473 | printf("Confirm delete node "); | 473 | printf("Confirm delete node "); |
| 474 | fflush(stdout); | ||
| 475 | write_key(stdout, n->child[i].key); | 474 | write_key(stdout, n->child[i].key); |
| 476 | printf("? [y/N] "); | 475 | printf("? [y/N] "); |
| 476 | fflush(stdout); | ||
| 477 | fgets(line, LINEMAXLEN, stdin); | 477 | fgets(line, LINEMAXLEN, stdin); |
| 478 | d = line[0] == 'y' || line[0] == 'Y'; | 478 | d = line[0] == 'y' || line[0] == 'Y'; |
| 479 | } | 479 | } |
