aboutsummaryrefslogtreecommitdiffstats
path: root/package/busybox/patches/480-vi_search.patch
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2009-05-25 13:52:31 +0000
committerNicolas Thill <nico@openwrt.org>2009-05-25 13:52:31 +0000
commitd7ec9765286b1cd8edf289a60196390b8712385e (patch)
tree961a48c9e27d27fd96ca6b76e567c7c5c7d5b4ea /package/busybox/patches/480-vi_search.patch
parent24c503eef18eb9056529fd774dc65c314191de68 (diff)
downloadmaster-187ad058-d7ec9765286b1cd8edf289a60196390b8712385e.tar.gz
master-187ad058-d7ec9765286b1cd8edf289a60196390b8712385e.tar.bz2
master-187ad058-d7ec9765286b1cd8edf289a60196390b8712385e.zip
[package] busybox: update to v1.12.4 (partially closes: #4279)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16053 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/busybox/patches/480-vi_search.patch')
-rw-r--r--package/busybox/patches/480-vi_search.patch19
1 files changed, 3 insertions, 16 deletions
diff --git a/package/busybox/patches/480-vi_search.patch b/package/busybox/patches/480-vi_search.patch
index 6162600575..1281135d2b 100644
--- a/package/busybox/patches/480-vi_search.patch
+++ b/package/busybox/patches/480-vi_search.patch
@@ -1,15 +1,15 @@
--- a/editors/vi.c
+++ b/editors/vi.c
-@@ -3313,7 +3313,7 @@ static void do_cmd(char c)
+@@ -3317,7 +3317,7 @@ static void do_cmd(char c)
buf[1] = '\0';
q = get_input_line(buf); // get input line- use "status line"
if (q[0] && !q[1]) {
- if (last_search_pattern[0])
+ if (last_search_pattern)
- last_search_pattern[0] = c;
+ last_search_pattern[0] = c;
goto dc3; // if no pat re-use old pat
}
-@@ -3329,6 +3329,10 @@ static void do_cmd(char c)
+@@ -3333,6 +3333,10 @@ static void do_cmd(char c)
if (cmdcnt-- > 1) {
do_cmd(c);
} // repeat cnt
@@ -20,16 +20,3 @@
dir = BACK; // assume BACKWARD search
p = dot - 1;
if (last_search_pattern[0] == '?') {
-@@ -3348,10 +3352,8 @@ static void do_cmd(char c)
- msg = "No previous regular expression";
- goto dc2;
- }
-- if (last_search_pattern[0] == '/') {
-- dir = FORWARD; // assume FORWARD search
-- p = dot + 1;
-- }
-+ dir = FORWARD; // assume FORWARD search
-+ p = dot + 1;
- if (last_search_pattern[0] == '?') {
- dir = BACK;
- p = dot - 1;