diff options
author | Ben Burwell <ben@benburwell.com> | 2020-01-04 12:54:48 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-01-05 16:01:50 -0500 |
commit | 07a9b9204eced8a26f24af3ad022e869a5632f88 (patch) | |
tree | 10f459d08051358e71704ef513041ac56c2f5b71 /widgets/dirlist.go | |
parent | b2dc624dbff6b9028ee7ab883f817166a610c9e3 (diff) | |
download | aerc-07a9b9204eced8a26f24af3ad022e869a5632f88.tar.gz |
Don't select completions until tab has been pressed
Before, pressing <Enter> when completions were visible would execute the
selected completion. As soon as completions were provided, the first
item would be selected. This could cause issues e.g. when changing
folders:
:cf <Enter>
Previously, this would have selected the first folder in the list. Now,
since <Tab>, <C-n>, etc have not been pressed to select the first
completion, the command above simply executes `:cf `.
To accomplish this, a "no-op completion" has been added at index -1.
Diffstat (limited to 'widgets/dirlist.go')
0 files changed, 0 insertions, 0 deletions