Ticket #2614: editcmd.c.diff
File editcmd.c.diff, 1.2 KB (added by ply, 13 years ago) |
---|
-
editcmd.c
1149 1149 /* --------------------------------------------------------------------------------------------- */ 1150 1150 /** collect the possible completions */ 1151 1151 static gsize 1152 edit_collect_completions (WEdit * edit, long start, gsize word_len,1152 edit_collect_completions (WEdit * edit, long word_start, gsize word_len, 1153 1153 char *match_expr, struct selection *compl, gsize * num) 1154 1154 { 1155 1155 gsize len = 0; … … 1158 1158 int skip; 1159 1159 GString *temp; 1160 1160 mc_search_t *srch; 1161 long start; 1161 1162 1162 1163 long last_byte; 1163 1164 … … 1172 1173 } 1173 1174 else 1174 1175 { 1175 last_byte = start;1176 last_byte = word_start; 1176 1177 } 1177 1178 1178 1179 srch->search_type = MC_SEARCH_T_REGEX; … … 1195 1196 skip = edit_get_byte (edit, start + i); 1196 1197 if (isspace (skip)) 1197 1198 continue; 1199 if (start + (long)i == word_start) 1200 break; 1198 1201 g_string_append_c (temp, skip); 1199 1202 } 1200 1203 1204 if (temp->len == 0) 1205 continue; 1206 1201 1207 skip = 0; 1202 1208 1203 1209 for (i = 0; i < (gsize) * num; i++)