Mercurial > vim
comparison src/term.c @ 21927:88070e222e82 v8.2.1513
patch 8.2.1513: cannot interrupt shell used for filename expansion
Commit: https://github.com/vim/vim/commit/0981c8729e09551f2e8e6c159bc29f2c1d04019c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 23 14:28:37 2020 +0200
patch 8.2.1513: cannot interrupt shell used for filename expansion
Problem: Cannot interrupt shell used for filename expansion. (Dominique
Pell?)
Solution: Do set tmode in mch_delay(). (closes #6770)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 23 Aug 2020 14:30:05 +0200 |
parents | 1d75baa22d9a |
children | 9bb1c984c4da |
comparison
equal
deleted
inserted
replaced
21926:ec5898bccf08 | 21927:88070e222e82 |
---|---|
3596 // May need to discard T_CRV, T_U7 or T_RBG response. | 3596 // May need to discard T_CRV, T_U7 or T_RBG response. |
3597 if (termrequest_any_pending()) | 3597 if (termrequest_any_pending()) |
3598 { | 3598 { |
3599 # ifdef UNIX | 3599 # ifdef UNIX |
3600 // Give the terminal a chance to respond. | 3600 // Give the terminal a chance to respond. |
3601 mch_delay(100L, FALSE); | 3601 mch_delay(100L, 0); |
3602 # endif | 3602 # endif |
3603 # ifdef TCIFLUSH | 3603 # ifdef TCIFLUSH |
3604 // Discard data received but not read. | 3604 // Discard data received but not read. |
3605 if (exiting) | 3605 if (exiting) |
3606 tcflush(fileno(stdin), TCIFLUSH); | 3606 tcflush(fileno(stdin), TCIFLUSH); |