Mercurial > vim
comparison src/testdir/test_popupwin.vim @ 19599:5eb0ead1415f v8.2.0356
patch 8.2.0356: MS-Windows: feedkeys() with VIMDLL cannot handle CSI
Commit: https://github.com/vim/vim/commit/8f027fe470555252b258508c455e93700a969cb1
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 4 23:21:35 2020 +0100
patch 8.2.0356: MS-Windows: feedkeys() with VIMDLL cannot handle CSI
Problem: MS-Windows: feedkeys() with VIMDLL cannot handle CSI correctly.
Solution: Modify mch_inchar() to encode CSI bytes. (Ozaki Kiichi, Ken
Takata, closes #5726)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 04 Mar 2020 23:30:04 +0100 |
parents | 167181848770 |
children | 5ad7a406647a |
comparison
equal
deleted
inserted
replaced
19598:e5054307d4bb | 19599:5eb0ead1415f |
---|---|
3282 | 3282 |
3283 " UTF-8: E3 80 80, including K_SPECIAL(0x80) | 3283 " UTF-8: E3 80 80, including K_SPECIAL(0x80) |
3284 call feedkeys("\u3000", 'xt') | 3284 call feedkeys("\u3000", 'xt') |
3285 call assert_equal([0xe3, 0x80, 0x80], g:bytes) | 3285 call assert_equal([0xe3, 0x80, 0x80], g:bytes) |
3286 | 3286 |
3287 if has('gui') | 3287 " UTF-8: E3 80 9B, including CSI(0x9B) |
3288 " UTF-8: E3 80 9B, including CSI(0x9B) | 3288 call feedkeys("\u301b", 'xt') |
3289 call feedkeys("\u301b", 'xt') | 3289 call assert_equal([0xe3, 0x80, 0x9b], g:bytes) |
3290 call assert_equal([0xe3, 0x80, 0x9b], g:bytes) | |
3291 endif | |
3292 | 3290 |
3293 call popup_clear() | 3291 call popup_clear() |
3294 delfunc MyPopupFilter | 3292 delfunc MyPopupFilter |
3295 unlet g:bytes | 3293 unlet g:bytes |
3296 endfunc | 3294 endfunc |