1
0
mirror of https://github.com/rfivet/uemacs.git synced 2025-11-23 11:41:15 -05:00

Harmonize usage of mlreply, mlreplyt and nextarg based on actual needs (input always terminated either on meta or newline characters).

This commit is contained in:
2015-08-25 09:17:41 +08:00
parent 1ab601071e
commit 51967939b8
6 changed files with 15 additions and 25 deletions

View File

@@ -713,7 +713,8 @@ static int readpattern(char *prompt, char *apat, int srch)
* Then, if it's the search string, make a reversed pattern.
* *Then*, make the meta-pattern, if we are defined that way.
*/
if ((status = mlreplyt(tpat, tpat, NPAT, metac)) == TRUE) {
status = mlreplyt( tpat, tpat, NPAT) ;
if( status == TRUE) {
strcpy(apat, tpat);
if (srch) { /* If we are doing the search string. */
/* Reverse string copy, and remember