From 474d22d6c98f5f1388e17cf0056b2efd61885f21 Mon Sep 17 00:00:00 2001 From: Ilia Maslakov Date: Wed, 4 Mar 2009 20:22:50 +0000 Subject: [PATCH] change width listbox, change output format --- edit/editcmd.c | 4 ++-- edit/etags.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/edit/editcmd.c b/edit/editcmd.c index 28da936bb..53c1989e0 100644 --- a/edit/editcmd.c +++ b/edit/editcmd.c @@ -3079,7 +3079,7 @@ edit_select_definition_dialog (WEdit * edit, char *match_expr, int max_len, int /* fill the listbox with the completions */ for (i = 0; i < num_lines; i++) { - label_def = g_strdup_printf ("%s>%s:%ld", def_hash[i].short_define, def_hash[i].filename, def_hash[i].line); + label_def = g_strdup_printf ("%s -> %s:%ld", def_hash[i].short_define, def_hash[i].filename, def_hash[i].line); listbox_add_item (def_list, LISTBOX_APPEND_AT_END, 0, label_def, &def_hash[i]); g_free(label_def); } @@ -3180,7 +3180,7 @@ edit_get_match_keyword_cmd (WEdit *edit) } g_free (path); - max_len = 50; + max_len = 60; word_len = 0; if ( num_def > 0 ) { edit_select_definition_dialog (edit, match_expr, max_len, word_len, diff --git a/edit/etags.h b/edit/etags.h index c780eb044..ae3c3eba1 100644 --- a/edit/etags.h +++ b/edit/etags.h @@ -1,7 +1,7 @@ #ifndef MC_EDIT_ETAGS_H #define MC_EDIT_ETAGS_H 1 -#define MAX_DEFINITIONS 50 +#define MAX_DEFINITIONS 60 #define SHORT_DEF_LEN 30 #define LONG_DEF_LEN 40 #define LINE_DEF_LEN 16