diff options
author | Timo Sirainen <cras@irssi.org> | 2001-12-07 19:45:47 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-12-07 19:45:47 +0000 |
commit | 5dfe5f8a5dabfeb740788077d25e8bc8ff5b9671 (patch) | |
tree | 0f9ea7f29af5c656e3d16f9c5d07a7edb3bb0617 /src/core | |
parent | 3f275ebd55c1c26935849787839c73ee0535a359 (diff) | |
download | irssi-5dfe5f8a5dabfeb740788077d25e8bc8ff5b9671.zip |
$!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
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/special-vars.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/special-vars.c b/src/core/special-vars.c index f1563238..d961bd58 100644 --- a/src/core/special-vars.c +++ b/src/core/special-vars.c @@ -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); } |