Commit b9ceaf2
console.lua: don't autoselect the wrong completion
The first completion is automatically inserted when Tab was not pressed,
but this is unwanted when you already typed one of the completions which
is not the first one, move back the cursor and press Enter.
e.g. if the line is "set vid", you place the cursor before "v" and press
Enter, it runs "set ab-loop-avid".
Fix this by aborting when the text in front of the cursor matches one of
the completions.1 parent 6269f4f commit b9ceaf2
1 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1031 | 1031 | | |
1032 | 1032 | | |
1033 | 1033 | | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
1034 | 1044 | | |
1035 | 1045 | | |
1036 | 1046 | | |
| |||
1049 | 1059 | | |
1050 | 1060 | | |
1051 | 1061 | | |
1052 | | - | |
| 1062 | + | |
| 1063 | + | |
1053 | 1064 | | |
1054 | 1065 | | |
1055 | 1066 | | |
| |||
0 commit comments