Mercurial > hg
comparison mcabber/src/screen.c @ 101:4f3ad00b5187
[/trunk] Changeset 115 by mikael
* Remove trailing spaces in commands
* Fix a bug in last change related to completion (didn't compile)
author | mikael |
---|---|
date | Thu, 21 Apr 2005 17:31:28 +0000 |
parents | 8fedef290c4e |
children | 2b4cc6bc5bf2 |
comparison
equal
deleted
inserted
replaced
100:8fedef290c4e | 101:4f3ad00b5187 |
---|---|
634 row = which_row(); | 634 row = which_row(); |
635 | 635 |
636 if (row == -1) return; // No completion if no leading slash | 636 if (row == -1) return; // No completion if no leading slash |
637 | 637 |
638 if (row == 0) { // Command completion | 638 if (row == 0) { // Command completion |
639 const char *cchar; | |
639 if (!completion_started) { | 640 if (!completion_started) { |
640 const char *cchar; | |
641 GSList *list = compl_get_category_list(COMPL_CMD); | 641 GSList *list = compl_get_category_list(COMPL_CMD); |
642 if (list) { | 642 if (list) { |
643 char *prefix = g_strndup(&inputLine[1], ptr_inputline-inputLine-1); | 643 char *prefix = g_strndup(&inputLine[1], ptr_inputline-inputLine-1); |
644 // Init completion | 644 // Init completion |
645 new_completion(prefix, list); | 645 new_completion(prefix, list); |