FreeBSD Bugzilla – Attachment 88079 Details for
Bug 124822
[editline] [patch] Editline's ed-search-{prev,next}-history retains previous pattern when it shouldn't
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 709 bytes, created by
James Butler
on 2008-06-21 13:10:06 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
James Butler
Created:
2008-06-21 13:10:06 UTC
Size:
709 bytes
patch
obsolete
>--- ./lib/libedit/search.c 2005-08-08 08:51:52.000000000 +1200 >+++ /home/james/search.c 2008-06-21 23:05:27.000000000 +1200 >@@ -175,8 +175,15 @@ > (void) strncpy(el->el_search.patbuf, el->el_line.buffer, > el->el_search.patlen); > el->el_search.patbuf[el->el_search.patlen] = '\0'; >- } else >- el->el_search.patlen = strlen(el->el_search.patbuf); >+ } else { >+ if (el->el_state.thiscmd == ED_SEARCH_PREV_HISTORY || >+ el->el_state.thiscmd == ED_SEARCH_NEXT_HISTORY) { >+ el->el_search.patlen = 0; >+ el->el_search.patbuf[0] = '\0'; >+ } else >+ el->el_search.patlen = >+ strlen(el->el_search.patbuf); >+ } > } > #ifdef SDEBUG > (void) fprintf(el->el_errfile, "\neventno = %d\n",
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 124822
: 88079