1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

$!xx! history search didn't work because history_func() got also the

trailing '!' character.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2213 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-12-07 19:45:47 +00:00 committed by cras
parent 3f275ebd55
commit 5dfe5f8a5d

View File

@ -189,7 +189,7 @@ static char *get_history(char **cmd, void *item, int *free_ret)
if (history_func == NULL)
ret = NULL;
else {
text = g_strndup(start, (int) (*cmd-start)+1);
text = g_strndup(start, (int) (*cmd-start));
ret = history_func(text, item, free_ret);
g_free(text);
}