forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit21267b6
committed
Fix \watch's interaction with libedit on ^C.
When you hit ^C, the terminal driver in Unix-like systems echoes "^C" aswell as sending an interrupt signal (depending on stty settings). Atleast libedit (but maybe also libreadline) is then confused about thecurrent cursor location, and corrupts the display if you try to scrollback. Fix, by moving to a new line before the next prompt is displayed.Back-patch to all supported released.Author: Pavel Stehule <pavel.stehule@gmail.com>Reported-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/3278793.1626198638%40sss.pgh.pa.us1 parent301b06d commit21267b6
1 file changed
+12
-0
lines changedLines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5145 | 5145 |
| |
5146 | 5146 |
| |
5147 | 5147 |
| |
| 5148 | + | |
| 5149 | + | |
| 5150 | + | |
| 5151 | + | |
| 5152 | + | |
| 5153 | + | |
| 5154 | + | |
| 5155 | + | |
| 5156 | + | |
| 5157 | + | |
| 5158 | + | |
| 5159 | + | |
5148 | 5160 |
| |
5149 | 5161 |
| |
5150 | 5162 |
| |
|
0 commit comments
Comments
(0)