diff options
author | ache <ache@ache.one> | 2019-02-10 23:52:06 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2019-02-10 23:52:06 +0100 |
commit | 9b81bd9478e242795e65f2d646b8b8eb123c5c5f (patch) | |
tree | d836b6cb0c9014c02aea426b9c5a7d93d47d5cd3 /main.c | |
parent | Fix search focus (diff) |
Implement circular search
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -108,7 +108,7 @@ int main(int argc, char* argv[]){ if( nameOrNumber = (*optarg == '+' ) ) r = findContact(optarg, &contact); else - r = findContactFromName(optarg, &contact); + r = findContactFromName(optarg, &contact, NULL); if( r ) { #ifdef DEBUG @@ -284,12 +284,10 @@ int main(int argc, char* argv[]){ contact* found = NULL; move(LINES-1,0); readline_n("> ", ""); - int r = findContactFromName(msg_win_str, &found); + int r = findContactFromName(msg_win_str, &found, getContactSelected()); if( r == 0 ) { setContactSelection(found); - } else { - printf("[%d]%s\n", r, msg_win_str); } curs_set(0); showContactListW(); |