Commit 8e2a229
patch 9.1.1618: completion: incorrect selected index returned from complete_info()
Problem: completion: incorrect selected index returned from
complete_info()
Solution: Return the index into "items" and restore the previous
behaviour (Robert Muir).
complete_info() returned an incorrect selected index after
0ac1eb3 (Patch v9.1.1311). Effectively
it became an index into "matches" instead of "items". Return the index
into "items" by default to restore the previous behavior, unless
"matches" was requested.
closes: #17952
Co-authored-by: Hirohito Higashi <[email protected]>
Signed-off-by: Robert Muir <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>1 parent 1434ea0 commit 8e2a229
3 files changed
Lines changed: 28 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4184 | 4184 | | |
4185 | 4185 | | |
4186 | 4186 | | |
4187 | | - | |
4188 | | - | |
| 4187 | + | |
| 4188 | + | |
4189 | 4189 | | |
4190 | 4190 | | |
4191 | 4191 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3520 | 3520 | | |
3521 | 3521 | | |
3522 | 3522 | | |
3523 | | - | |
| 3523 | + | |
3524 | 3524 | | |
3525 | 3525 | | |
3526 | 3526 | | |
| |||
3904 | 3904 | | |
3905 | 3905 | | |
3906 | 3906 | | |
| 3907 | + | |
| 3908 | + | |
| 3909 | + | |
| 3910 | + | |
| 3911 | + | |
| 3912 | + | |
| 3913 | + | |
| 3914 | + | |
| 3915 | + | |
| 3916 | + | |
| 3917 | + | |
| 3918 | + | |
| 3919 | + | |
| 3920 | + | |
| 3921 | + | |
| 3922 | + | |
| 3923 | + | |
| 3924 | + | |
| 3925 | + | |
| 3926 | + | |
| 3927 | + | |
3907 | 3928 | | |
3908 | 3929 | | |
3909 | 3930 | | |
| |||
3924 | 3945 | | |
3925 | 3946 | | |
3926 | 3947 | | |
3927 | | - | |
| 3948 | + | |
3928 | 3949 | | |
3929 | 3950 | | |
3930 | 3951 | | |
| |||
5067 | 5088 | | |
5068 | 5089 | | |
5069 | 5090 | | |
5070 | | - | |
| 5091 | + | |
5071 | 5092 | | |
5072 | 5093 | | |
5073 | 5094 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
| 722 | + | |
| 723 | + | |
722 | 724 | | |
723 | 725 | | |
724 | 726 | | |
| |||
0 commit comments