aerc/lib
Koni Marti 5cf81f1cb1 autocompletion: fix regression
Commit 27425c15c4 ("autocompletion: fix slice out of bounds access")
introduced a regression in the autocompletion that messes up the order
of last entered chars when autocompletion runs.

The ranges for a slice a[low:high] are 0 <= low <= high <= len(a) [0]

To reproduce with the ":cf" command:

1) enter ":c"
2) wait for autocompleteion
3) enter "f"
4) the prompt will now be ":fc"

[0]: https://go.dev/ref/spec#Slice_expressions

Fixes: 27425c15c4 ("autocompletion: fix slice out of bounds access")
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
2022-08-01 10:37:49 +02:00
..
auth msgviewer: parse and display authentication results 2022-06-09 09:42:23 +02:00
calendar calendar: fix go vet error 2022-06-24 21:08:21 +02:00
crypto logging: use level-based logger functions 2022-07-23 22:52:15 +02:00
format index: workaround for wide character printing 2022-07-30 17:58:26 +02:00
parse msgviewer: open http links from messages 2022-06-14 22:12:48 +02:00
sort go.mod: change base git url 2021-11-05 10:21:45 +01:00
statusline feat: add background mail polling option for all workers 2022-05-31 14:32:51 +02:00
templates config: do not hardcode sharedir 2022-02-19 15:24:55 +01:00
ui autocompletion: fix regression 2022-08-01 10:37:49 +02:00
uidstore Create UIDStore package 2019-07-12 11:09:47 -04:00
attachment.go compose: refactor attachment handling 2022-07-02 17:52:49 +02:00
dirstore.go Move msgstore map to dirstore 2019-07-26 14:15:27 -04:00
history.go Add command history and cycling 2019-07-26 14:29:34 -04:00
keepalive_dummy.go format: reformat code with go 1.17 2021-12-11 23:24:08 +01:00
keepalive_linux.go format: reformat code with go 1.17 2021-12-11 23:24:08 +01:00
messageview.go refactor: refactor pgp implementation 2022-04-27 09:46:11 +02:00
msgstore.go store: fix nexprev when filtering 2022-08-01 10:37:47 +02:00
oauthbearer.go Add oauthbearer support for SMTP 2020-08-13 07:44:43 +02:00
open.go logging: added a log on panic 2022-03-23 20:56:09 +01:00
socket.go logging: use level-based logger functions 2022-07-23 22:52:15 +02:00
structure_helpers.go lib: fix tests for 386 platforms 2022-07-14 23:15:26 +02:00
structure_helpers_test.go forward: provide option to append all attachments 2022-07-02 17:53:06 +02:00
threadbuilder.go threads: debounce client-side thread building 2022-07-26 22:22:48 +02:00