vi Undo patch
Denys Vlasenko
vda.linux at googlemail.com
Thu Apr 3 10:55:43 UTC 2014
BTW:
} else if (strncmp(p, "write", cnt) == 0
|| strncmp(p, "wq", cnt) == 0
|| strncmp(p, "wn", cnt) == 0
|| (p[0] == 'x' && !p[1])
) {
cnt = file_write(current_filename, text, end - 1);
if (cnt < 0) {
if (cnt == -1)
status_line_bold("Write error:
%s", strerror(errno));
} else {
modified_count = 0;
last_modified_count = -1;
What will happen now when user presses 'u'? This one:
Undo [-2] deleted 8 chars at position 450
This looks.. er.. amusing?
More information about the busybox
mailing list