cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2554 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
638cbe5407
commit
7de678798a
|
@ -2213,9 +2213,9 @@ char *input_tab(char *buf, size_t *place, bool *lastwastab, bool *list)
|
||||||
*lastwastab == FALSE))
|
*lastwastab == FALSE))
|
||||||
beep();
|
beep();
|
||||||
|
|
||||||
/* If there is more match to display on the statusbar, show it.
|
/* If there is more of a match to display on the statusbar, show
|
||||||
* We reset lastwastab to FALSE: it requires hitting Tab twice
|
* it. We reset lastwastab to FALSE: it requires hitting Tab
|
||||||
* in succession with no statusbar changes to see a match
|
* twice in succession with no statusbar changes to see a match
|
||||||
* list. */
|
* list. */
|
||||||
if (common_len != *place) {
|
if (common_len != *place) {
|
||||||
size_t buflen = strlen(buf);
|
size_t buflen = strlen(buf);
|
||||||
|
@ -2239,10 +2239,12 @@ char *input_tab(char *buf, size_t *place, bool *lastwastab, bool *list)
|
||||||
|
|
||||||
for (match = 0; match < num_matches; match++) {
|
for (match = 0; match < num_matches; match++) {
|
||||||
common_len = strnlenpt(matches[match], COLS - 1);
|
common_len = strnlenpt(matches[match], COLS - 1);
|
||||||
|
|
||||||
if (common_len > COLS - 1) {
|
if (common_len > COLS - 1) {
|
||||||
longest_name = COLS - 1;
|
longest_name = COLS - 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (common_len > longest_name)
|
if (common_len > longest_name)
|
||||||
longest_name = common_len;
|
longest_name = common_len;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue