mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
The "max. count" parameter in /LAST didn't work right.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@384 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
7718294fa0
commit
6757207328
@ -203,11 +203,12 @@ static void cmd_lastlog(const char *data)
|
||||
list = gui_window_find_text(active_win, text, startline, flags & LASTLOG_FLAG_REGEXP, flags & LASTLOG_FLAG_WORD);
|
||||
tmp = lastlog_find_startline(list, count, atoi(start), level);
|
||||
|
||||
for (; tmp != NULL && (count < 0 || count > 0); tmp = tmp->next, count--) {
|
||||
for (; tmp != NULL && (count < 0 || count > 0); tmp = tmp->next) {
|
||||
LINE_REC *rec = tmp->data;
|
||||
|
||||
if (!lastlog_match(rec, level))
|
||||
continue;
|
||||
count--;
|
||||
|
||||
text = gui_window_line2text(rec);
|
||||
if (settings_get_bool("timestamps"))
|
||||
|
Loading…
Reference in New Issue
Block a user