aboutsummaryrefslogtreecommitdiff
path: root/commands/term.go
diff options
context:
space:
mode:
authorBen Burwell <ben@benburwell.com>2020-01-04 12:54:48 -0500
committerDrew DeVault <sir@cmpwn.com>2020-01-05 16:01:50 -0500
commit07a9b9204eced8a26f24af3ad022e869a5632f88 (patch)
tree10f459d08051358e71704ef513041ac56c2f5b71 /commands/term.go
parentb2dc624dbff6b9028ee7ab883f817166a610c9e3 (diff)
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 'commands/term.go')
0 files changed, 0 insertions, 0 deletions