Mercurial > vim
comparison src/testdir/screendump.vim @ 15653:59a1ff689b4d v8.1.0834
patch 8.1.0834: GUI may wait too long before dealing with messages
commit https://github.com/vim/vim/commit/e40b9d47bf8f8f716d3ef5a95c8ecbbdc0a501f9
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 27 16:55:47 2019 +0100
patch 8.1.0834: GUI may wait too long before dealing with messages
Problem: GUI may wait too long before dealing with messages. Returning
early may cause a mapping to time out.
Solution: Use the waiting loop from Unix also for the GUI.
(closes #3817, closes #3824)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 27 Jan 2019 17:00:07 +0100 |
parents | 9339601e7a31 |
children | 95648dc0124f |
comparison
equal
deleted
inserted
replaced
15652:e987698f1397 | 15653:59a1ff689b4d |
---|---|
56 | 56 |
57 " Add -v to have gvim run in the terminal (if possible) | 57 " Add -v to have gvim run in the terminal (if possible) |
58 let cmd .= ' -v ' . a:arguments | 58 let cmd .= ' -v ' . a:arguments |
59 let buf = term_start(cmd, {'curwin': 1, 'term_rows': rows, 'term_cols': cols}) | 59 let buf = term_start(cmd, {'curwin': 1, 'term_rows': rows, 'term_cols': cols}) |
60 if &termwinsize == '' | 60 if &termwinsize == '' |
61 " in the GUI we may end up with a different size, try to set it. | |
62 if term_getsize(buf) != [rows, cols] | |
63 call term_setsize(buf, rows, cols) | |
64 endif | |
61 call assert_equal([rows, cols], term_getsize(buf)) | 65 call assert_equal([rows, cols], term_getsize(buf)) |
62 else | 66 else |
63 let rows = term_getsize(buf)[0] | 67 let rows = term_getsize(buf)[0] |
64 let cols = term_getsize(buf)[1] | 68 let cols = term_getsize(buf)[1] |
65 endif | 69 endif |