aerc/lib/ui
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
..
borders.go uiconfig: use pointer references to uiConfig 2022-07-03 21:32:18 +02:00
context.go update tcell to v2 and enable TrueColor support 2020-12-18 07:23:22 +01:00
fill.go view,compose: use border color to separate headers from body 2021-10-28 16:38:23 +02:00
grid.go grid: don't draw at a negative offset 2022-04-28 17:56:37 +02:00
interfaces.go update tcell to v2 and enable TrueColor support 2020-12-18 07:23:22 +01:00
invalidatable.go lib/ui: introduce Invalidatable 2019-04-27 14:30:28 -04:00
popover.go update tcell to v2 and enable TrueColor support 2020-12-18 07:23:22 +01:00
stack.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
tab.go tabs: make it more thread safe 2022-07-23 22:00:29 +02:00
text.go update tcell to v2 and enable TrueColor support 2020-12-18 07:23:22 +01:00
textinput.go autocompletion: fix regression 2022-08-01 10:37:49 +02:00
ui.go logging: added a log on panic 2022-03-23 20:56:09 +01:00