keep input text after plugin trigger

SVN revision: 49052
This commit is contained in:
Hannes Janetzek 2010-05-20 05:02:24 +00:00
parent c83a8b509d
commit 7cda1b4edb
1 changed files with 5 additions and 1 deletions

View File

@ -2433,7 +2433,11 @@ _evry_matches_update(Evry_Selector *sel, int async)
if (len_trigger > 1)
{
s->inp[0] = '>';
s->inp[1] = '\0';
if (s->inp + len_trigger)
strcpy(s->inp + 1, s->inp + len_trigger);
else
s->inp[1] = 0;
}
s->input = s->inp + 1;
_evry_update_text_label(s);