forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb4771d7
committed
Don't treat complete_from_const as equivalent to complete_from_list.
Commit4f3b38f supposed that complete_from_const() is equivalent tothe one-element-list case of complete_from_list(), but that's notreally true at all. complete_from_const() supposes that the completionis certain enough to justify wiping out whatever the user typed, whilecomplete_from_list() will only provide completions that match theword-so-far.In practice, given the lame parsing technology used by tab-complete.c,it's fairly hard to believe that we're *ever* certain enough abouta completion to justify auto-correcting user input that doesn't match.Hence, remove the inappropriate unification of the two cases.As things now stand, complete_from_const() is used only for thesituation where we have no matches and we need to keep readlinefrom applying its default complete-with-file-names behavior.This (mis?) behavior actually exists much further back, butI'm hesitant to change it in released branches. It's not toolate for v12, though, especially seeing that the aforesaidcommit is new in v12.Per gripe from Ken Tanzer.Discussion:https://postgr.es/m/CAD3a31XpXzrZA9TT3BqLSHghdTK+=cXjNCE+oL2Zn4+oWoc=qA@mail.gmail.com1 parent0ec3e13 commitb4771d7
1 file changed
+29
-15
lines changedLines changed: 29 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
205 | 205 |
| |
206 | 206 |
| |
207 | 207 |
| |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
208 | 219 |
| |
209 | 220 |
| |
210 | 221 |
| |
211 |
| - | |
212 |
| - | |
213 |
| - | |
214 |
| - | |
215 |
| - | |
216 |
| - | |
217 |
| - | |
218 |
| - | |
219 |
| - | |
220 |
| - | |
| 222 | + | |
| 223 | + | |
221 | 224 |
| |
222 | 225 |
| |
223 | 226 |
| |
| |||
3758 | 3761 |
| |
3759 | 3762 |
| |
3760 | 3763 |
| |
3761 |
| - | |
| 3764 | + | |
3762 | 3765 |
| |
3763 | 3766 |
| |
3764 | 3767 |
| |
| |||
4188 | 4191 |
| |
4189 | 4192 |
| |
4190 | 4193 |
| |
4191 |
| - | |
4192 |
| - | |
4193 |
| - | |
4194 |
| - | |
| 4194 | + | |
| 4195 | + | |
| 4196 | + | |
| 4197 | + | |
| 4198 | + | |
| 4199 | + | |
| 4200 | + | |
| 4201 | + | |
| 4202 | + | |
| 4203 | + | |
| 4204 | + | |
| 4205 | + | |
| 4206 | + | |
| 4207 | + | |
| 4208 | + | |
4195 | 4209 |
| |
4196 | 4210 |
| |
4197 | 4211 |
| |
|
0 commit comments
Comments
(0)