Mercurial > vim
comparison src/testdir/test_cmdline.vim @ 15607:2dcaa860e3fc v8.1.0811
patch 8.1.0811: too many #ifdefs
commit https://github.com/vim/vim/commit/30276f2beb248557c6b33cd5418bca8b7084b0a5
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 24 17:59:39 2019 +0100
patch 8.1.0811: too many #ifdefs
Problem: Too many #ifdefs.
Solution: Graduate FEAT_MBYTE, the final chapter.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 24 Jan 2019 18:00:07 +0100 |
parents | de8dc397cd2a |
children | c2c4fb3379e8 |
comparison
equal
deleted
inserted
replaced
15606:50e09796a00a | 15607:2dcaa860e3fc |
---|---|
580 " setcmdpos() returns 1 when not editing the command line. | 580 " setcmdpos() returns 1 when not editing the command line. |
581 call assert_equal(1, setcmdpos(3)) | 581 call assert_equal(1, setcmdpos(3)) |
582 endfunc | 582 endfunc |
583 | 583 |
584 func Test_cmdline_overstrike() | 584 func Test_cmdline_overstrike() |
585 let encodings = has('multi_byte') ? [ 'latin1', 'utf8' ] : [ 'latin1' ] | 585 let encodings = ['latin1', 'utf8'] |
586 let encoding_save = &encoding | 586 let encoding_save = &encoding |
587 | 587 |
588 for e in encodings | 588 for e in encodings |
589 exe 'set encoding=' . e | 589 exe 'set encoding=' . e |
590 | 590 |
599 " Test toggling insert/overstrike a few times. | 599 " Test toggling insert/overstrike a few times. |
600 call feedkeys(":\"01234\<home>\<right>ab\<right>\<insert>cd\<right>\<insert>ef\<enter>", 'xt') | 600 call feedkeys(":\"01234\<home>\<right>ab\<right>\<insert>cd\<right>\<insert>ef\<enter>", 'xt') |
601 call assert_equal('"ab0cd3ef4', @:) | 601 call assert_equal('"ab0cd3ef4', @:) |
602 endfor | 602 endfor |
603 | 603 |
604 if has('multi_byte') | 604 " Test overstrike with multi-byte characters. |
605 " Test overstrike with multi-byte characters. | 605 call feedkeys(":\"テキストエディタ\<home>\<right>\<right>ab\<right>\<insert>cd\<enter>", 'xt') |
606 call feedkeys(":\"テキストエディタ\<home>\<right>\<right>ab\<right>\<insert>cd\<enter>", 'xt') | 606 call assert_equal('"テabキcdエディタ', @:) |
607 call assert_equal('"テabキcdエディタ', @:) | |
608 endif | |
609 | 607 |
610 let &encoding = encoding_save | 608 let &encoding = encoding_save |
611 endfunc | 609 endfunc |
612 | 610 |
613 set cpo& | 611 set cpo& |