mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
/LAST <number> <non-number> (eg. /last 5 -) should treat the number as text,
not as count parameter. This way you don't have to type "/last 5 - -" if you want to search for string "5" from lastlog. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1521 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
7eae5d37df
commit
0f62f9c21c
@ -223,9 +223,9 @@ static void cmd_lastlog(const char *data)
|
|||||||
"lastlog", &optlist, &text, &countstr, &start))
|
"lastlog", &optlist, &text, &countstr, &start))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (*start == '\0' && is_numeric(text, 0)) {
|
if (*start == '\0' && is_numeric(text, 0) &&
|
||||||
if (is_numeric(countstr, 0))
|
(*countstr == '\0' || is_numeric(countstr, 0)) {
|
||||||
start = countstr;
|
start = countstr;
|
||||||
countstr = text;
|
countstr = text;
|
||||||
text = "";
|
text = "";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user