mirror of
git://git.sv.gnu.org/nano.git
synced 2025-02-08 17:34:00 +03:00
tweaks: rename a variable, to better describe what it holds
This commit is contained in:
parent
b55153524a
commit
8bce70e038
11
src/prompt.c
11
src/prompt.c
@ -417,9 +417,8 @@ functionptrtype acquire_an_answer(int *actual, bool *listed,
|
|||||||
#ifdef ENABLE_TABCOMP
|
#ifdef ENABLE_TABCOMP
|
||||||
int last_kbinput = ERR;
|
int last_kbinput = ERR;
|
||||||
/* The key we pressed before the current key. */
|
/* The key we pressed before the current key. */
|
||||||
size_t complete_len = 0;
|
size_t fragment_length = 0;
|
||||||
/* The length of the original string that we're trying to
|
/* The length of the fragment that the user tries to tab complete. */
|
||||||
* tab complete, if any. */
|
|
||||||
#endif
|
#endif
|
||||||
#endif /* ENABLE_HISTORIES */
|
#endif /* ENABLE_HISTORIES */
|
||||||
|
|
||||||
@ -453,11 +452,11 @@ functionptrtype acquire_an_answer(int *actual, bool *listed,
|
|||||||
#ifdef ENABLE_HISTORIES
|
#ifdef ENABLE_HISTORIES
|
||||||
if (history_list != NULL) {
|
if (history_list != NULL) {
|
||||||
if (last_kbinput != the_code_for(do_tab, '\t'))
|
if (last_kbinput != the_code_for(do_tab, '\t'))
|
||||||
complete_len = strlen(answer);
|
fragment_length = strlen(answer);
|
||||||
|
|
||||||
if (complete_len > 0) {
|
if (fragment_length > 0) {
|
||||||
answer = get_history_completion(history_list,
|
answer = get_history_completion(history_list,
|
||||||
answer, complete_len);
|
answer, fragment_length);
|
||||||
typing_x = strlen(answer);
|
typing_x = strlen(answer);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user