mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 07:32:04 +02:00
/LASTLOG: start parameter wasn't handled correctly
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1763 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
2d37f461ac
commit
bdaeaa11cd
1 changed files with 1 additions and 3 deletions
|
|
@ -147,10 +147,8 @@ static void show_lastlog(const char *searchtext, GHashTable *optlist,
|
||||||
if (count <= 0)
|
if (count <= 0)
|
||||||
tmp = list;
|
tmp = list;
|
||||||
else {
|
else {
|
||||||
int pos = len-count;
|
int pos = len-count-start;
|
||||||
|
|
||||||
if (pos < 0) pos = 0;
|
if (pos < 0) pos = 0;
|
||||||
pos += start;
|
|
||||||
|
|
||||||
tmp = pos > len ? NULL : g_list_nth(list, pos);
|
tmp = pos > len ? NULL : g_list_nth(list, pos);
|
||||||
len = g_list_length(tmp);
|
len = g_list_length(tmp);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue