aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-03-22 15:48:57 +0000
committerRon Yorston <rmy@pobox.com>2012-03-22 15:48:57 +0000
commit9db164d6e39050d09f38288c6045cd2a2cbf6d63 (patch)
treeea5dc2d28d15da0de25c197ed7d059c3656af1a0 /editors
parent1118c95535ea51961437089fc3dece5ab4ea7e1b (diff)
parentd84b175cb6948eb17f847313bf912174e2f934e1 (diff)
downloadbusybox-w32-9db164d6e39050d09f38288c6045cd2a2cbf6d63.tar.gz
busybox-w32-9db164d6e39050d09f38288c6045cd2a2cbf6d63.tar.bz2
busybox-w32-9db164d6e39050d09f38288c6045cd2a2cbf6d63.zip
Merge commit 'd84b175cb6948eb17f847313bf912174e2f934e1' into merge
Conflicts: include/platform.h
Diffstat (limited to 'editors')
-rw-r--r--editors/diff.c4
-rw-r--r--editors/vi.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/editors/diff.c b/editors/diff.c
index 8c0a31f47..3a3334640 100644
--- a/editors/diff.c
+++ b/editors/diff.c
@@ -693,10 +693,12 @@ static bool diff(FILE* fp[2], char *file[2])
693 693
694static int diffreg(char *file[2]) 694static int diffreg(char *file[2])
695{ 695{
696 FILE *fp[2] = { stdin, stdin }; 696 FILE *fp[2];
697 bool binary = false, differ = false; 697 bool binary = false, differ = false;
698 int status = STATUS_SAME, i; 698 int status = STATUS_SAME, i;
699 699
700 fp[0] = stdin;
701 fp[1] = stdin;
700 for (i = 0; i < 2; i++) { 702 for (i = 0; i < 2; i++) {
701 int fd = open_or_warn_stdin(file[i]); 703 int fd = open_or_warn_stdin(file[i]);
702 if (fd == -1) 704 if (fd == -1)
diff --git a/editors/vi.c b/editors/vi.c
index deb471d04..9708679b4 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -132,8 +132,8 @@
132//config: help 132//config: help
133//config: If terminal size can't be retrieved and $LINES/$COLUMNS are not set, 133//config: If terminal size can't be retrieved and $LINES/$COLUMNS are not set,
134//config: this option makes vi perform a last-ditch effort to find it: 134//config: this option makes vi perform a last-ditch effort to find it:
135//config: vi positions cursor to 999,999 and asks terminal to report real 135//config: position cursor to 999,999 and ask terminal to report real
136//config: cursor position using "ESC [ 6 n" escape sequence, then reads stdin. 136//config: cursor position using "ESC [ 6 n" escape sequence, then read stdin.
137//config: 137//config:
138//config: This is not clean but helps a lot on serial lines and such. 138//config: This is not clean but helps a lot on serial lines and such.
139//config: 139//config: