forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfe75517
committed
Fix psql's tab-completion of enum label values.
Since enum labels have to be single-quoted, this part of thetab completion machinery got side-swiped by commitcd69ec6.A side-effect of that commit is that (at least with some versionsof Readline) the text string passed for completion will omit theleading quote mark of the enum label literal. Libedit still actsthe same as before, though, so adapt COMPLETE_WITH_ENUM_VALUE sothat it can cope with either convention.Also, when we fail to find any valid completion, setrl_completion_suppress_quote = 1. Otherwise readline willgo ahead and append a closing quote, which is unwanted.Per report from Peter Eisentraut. Back-patch to v13 wherecd69ec6 came in.Discussion:https://postgr.es/m/8ca82d89-ec3d-8b28-8291-500efaf23b25@enterprisedb.com1 parented48e35 commitfe75517
2 files changed
+57
-7
lines changedLines changed: 12 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
45 |
| - | |
| 45 | + | |
| 46 | + | |
46 | 47 |
| |
47 | 48 |
| |
48 | 49 |
| |
| |||
223 | 224 |
| |
224 | 225 |
| |
225 | 226 |
| |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
226 | 237 |
| |
227 | 238 |
| |
228 | 239 |
| |
|
Lines changed: 45 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
278 | 278 |
| |
279 | 279 |
| |
280 | 280 |
| |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
281 | 287 |
| |
282 | 288 |
| |
283 | 289 |
| |
284 | 290 |
| |
| 291 | + | |
285 | 292 |
| |
286 | 293 |
| |
287 | 294 |
| |
288 | 295 |
| |
289 | 296 |
| |
290 | 297 |
| |
291 |
| - | |
292 |
| - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
293 | 302 |
| |
294 |
| - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
295 | 307 |
| |
296 | 308 |
| |
297 | 309 |
| |
298 | 310 |
| |
299 |
| - | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
300 | 315 |
| |
301 | 316 |
| |
302 | 317 |
| |
| |||
678 | 693 |
| |
679 | 694 |
| |
680 | 695 |
| |
681 |
| - | |
| 696 | + | |
682 | 697 |
| |
683 | 698 |
| |
684 | 699 |
| |
| |||
687 | 702 |
| |
688 | 703 |
| |
689 | 704 |
| |
690 |
| - | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
691 | 715 |
| |
692 | 716 |
| |
693 | 717 |
| |
| |||
698 | 722 |
| |
699 | 723 |
| |
700 | 724 |
| |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
701 | 736 |
| |
702 | 737 |
| |
703 | 738 |
| |
| |||
4417 | 4452 |
| |
4418 | 4453 |
| |
4419 | 4454 |
| |
| 4455 | + | |
4420 | 4456 |
| |
4421 | 4457 |
| |
| 4458 | + | |
| 4459 | + | |
| 4460 | + | |
4422 | 4461 |
| |
4423 | 4462 |
| |
4424 | 4463 |
| |
|
0 commit comments
Comments
(0)