diff options
author | Timo Sirainen <cras@irssi.org> | 2001-08-17 14:08:35 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-08-17 14:08:35 +0000 |
commit | bdaeaa11cd2c91c1adbb9527da3abd710c02fc2c (patch) | |
tree | 1308772dfaa1945b845ecf6789e1ea08039f66a3 /src | |
parent | 2d37f461aca9decc0f0196812ac6781a4bb6594a (diff) | |
download | irssi-bdaeaa11cd2c91c1adbb9527da3abd710c02fc2c.zip |
/LASTLOG: start parameter wasn't handled correctly
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1763 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-text/lastlog.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fe-text/lastlog.c b/src/fe-text/lastlog.c index 320a2a99..e854fd9b 100644 --- a/src/fe-text/lastlog.c +++ b/src/fe-text/lastlog.c @@ -147,10 +147,8 @@ static void show_lastlog(const char *searchtext, GHashTable *optlist, if (count <= 0) tmp = list; else { - int pos = len-count; - + int pos = len-count-start; if (pos < 0) pos = 0; - pos += start; tmp = pos > len ? NULL : g_list_nth(list, pos); len = g_list_length(tmp); |