forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite5b5b44
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 parent49d296d commite5b5b44
1 file changed
+8
-0
lines changedLines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4899 | 4899 |
| |
4900 | 4900 |
| |
4901 | 4901 |
| |
| 4902 | + | |
| 4903 | + | |
| 4904 | + | |
| 4905 | + | |
| 4906 | + | |
| 4907 | + | |
| 4908 | + | |
| 4909 | + | |
4902 | 4910 |
| |
4903 | 4911 |
| |
4904 | 4912 |
| |
|
0 commit comments
Comments
(0)