Commit 020258f
committed
Treat case of tab-completion keywords a bit more carefully.
When completing keywords that are offered alongside names obtained
from a query, preserve the user's choice of keyword case. This
would have been messy to do before 02b8048, but now it's fairly
simple. A complication is that we want keywords to be shown in
upper case in any tab-completion menus that include both keywords
and non-keywords, so we can't switch their case until enough has
been typed that only keyword(s) remain to be chosen.
Also, adjust some places where 02b8048 thoughtlessly held over
a previous choice to display keywords in lower case. (I think
I got confused as to whether those words were keywords or variable
names, but they're the former.)
Dagfinn Ilmari Mannsåker and Tom Lane
Discussion: https://postgr.es/m/8735l41ynm.fsf@wibble.ilmari.org1 parent a5a9d77 commit 020258f
2 files changed
+62
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
328 | 344 | | |
329 | 345 | | |
330 | 346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1320 | 1320 | | |
1321 | 1321 | | |
1322 | 1322 | | |
1323 | | - | |
1324 | | - | |
1325 | | - | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
1326 | 1328 | | |
1327 | 1329 | | |
1328 | 1330 | | |
| |||
2059 | 2061 | | |
2060 | 2062 | | |
2061 | 2063 | | |
2062 | | - | |
| 2064 | + | |
2063 | 2065 | | |
2064 | 2066 | | |
2065 | 2067 | | |
| |||
4039 | 4041 | | |
4040 | 4042 | | |
4041 | 4043 | | |
4042 | | - | |
4043 | | - | |
4044 | | - | |
4045 | | - | |
4046 | | - | |
4047 | | - | |
| 4044 | + | |
| 4045 | + | |
| 4046 | + | |
| 4047 | + | |
| 4048 | + | |
| 4049 | + | |
4048 | 4050 | | |
4049 | 4051 | | |
4050 | | - | |
4051 | | - | |
| 4052 | + | |
| 4053 | + | |
| 4054 | + | |
| 4055 | + | |
4052 | 4056 | | |
4053 | 4057 | | |
4054 | 4058 | | |
| |||
4742 | 4746 | | |
4743 | 4747 | | |
4744 | 4748 | | |
4745 | | - | |
| 4749 | + | |
| 4750 | + | |
4746 | 4751 | | |
4747 | 4752 | | |
4748 | 4753 | | |
| |||
4765 | 4770 | | |
4766 | 4771 | | |
4767 | 4772 | | |
4768 | | - | |
| 4773 | + | |
| 4774 | + | |
4769 | 4775 | | |
4770 | 4776 | | |
4771 | 4777 | | |
| |||
4986 | 4992 | | |
4987 | 4993 | | |
4988 | 4994 | | |
| 4995 | + | |
| 4996 | + | |
4989 | 4997 | | |
| 4998 | + | |
4990 | 4999 | | |
4991 | 5000 | | |
4992 | 5001 | | |
| |||
5007 | 5016 | | |
5008 | 5017 | | |
5009 | 5018 | | |
5010 | | - | |
| 5019 | + | |
5011 | 5020 | | |
5012 | 5021 | | |
5013 | 5022 | | |
| |||
5031 | 5040 | | |
5032 | 5041 | | |
5033 | 5042 | | |
5034 | | - | |
5035 | | - | |
| 5043 | + | |
| 5044 | + | |
| 5045 | + | |
| 5046 | + | |
| 5047 | + | |
| 5048 | + | |
5036 | 5049 | | |
5037 | 5050 | | |
5038 | 5051 | | |
| |||
5049 | 5062 | | |
5050 | 5063 | | |
5051 | 5064 | | |
5052 | | - | |
5053 | | - | |
| 5065 | + | |
| 5066 | + | |
| 5067 | + | |
| 5068 | + | |
| 5069 | + | |
| 5070 | + | |
5054 | 5071 | | |
5055 | 5072 | | |
5056 | 5073 | | |
| |||
5062 | 5079 | | |
5063 | 5080 | | |
5064 | 5081 | | |
5065 | | - | |
| 5082 | + | |
5066 | 5083 | | |
5067 | 5084 | | |
5068 | 5085 | | |
| |||
0 commit comments