Mercurial > vim
view src/libvterm/t/40screen_ascii.test @ 17638:9ffec4eb8d33 v8.1.1816
patch 8.1.1816: cannot use a user defined function as a method
commit https://github.com/vim/vim/commit/fcfe1a9b8950b8b211ab3b24d84b17c6847ea43f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 4 23:04:39 2019 +0200
patch 8.1.1816: cannot use a user defined function as a method
Problem: Cannot use a user defined function as a method.
Solution: Pass the base as the first argument to the user defined function
after "->". (partly by FUJIWARA Takuya)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 04 Aug 2019 23:15:05 +0200 |
parents | b8299e742f41 |
children |
line wrap: on
line source
INIT WANTSCREEN c !Get RESET PUSH "ABC" movecursor 0,3 ?screen_chars 0,0,1,3 = 0x41,0x42,0x43 ?screen_chars 0,0,1,80 = 0x41,0x42,0x43 ?screen_text 0,0,1,3 = 0x41,0x42,0x43 ?screen_text 0,0,1,80 = 0x41,0x42,0x43 ?screen_cell 0,0 = {0x41} width=1 attrs={} fg=rgb(240,240,240) bg=rgb(0,0,0) ?screen_cell 0,1 = {0x42} width=1 attrs={} fg=rgb(240,240,240) bg=rgb(0,0,0) ?screen_cell 0,2 = {0x43} width=1 attrs={} fg=rgb(240,240,240) bg=rgb(0,0,0) ?screen_row 0 = "ABC" ?screen_eol 0,0 = 0 ?screen_eol 0,2 = 0 ?screen_eol 0,3 = 1 PUSH "\e[H" movecursor 0,0 ?screen_chars 0,0,1,80 = 0x41,0x42,0x43 ?screen_text 0,0,1,80 = 0x41,0x42,0x43 PUSH "E" movecursor 0,1 ?screen_chars 0,0,1,80 = 0x45,0x42,0x43 ?screen_text 0,0,1,80 = 0x45,0x42,0x43 WANTSCREEN -c !Erase RESET PUSH "ABCDE\e[H\e[K" ?screen_chars 0,0,1,80 = ?screen_text 0,0,1,80 = !Copycell RESET PUSH "ABC\e[H\e[@" PUSH "1" ?screen_chars 0,0,1,80 = 0x31,0x41,0x42,0x43 RESET PUSH "ABC\e[H\e[P" ?screen_chars 0,0,1,1 = 0x42 ?screen_chars 0,1,1,2 = 0x43 ?screen_chars 0,0,1,80 = 0x42,0x43 !Space padding RESET PUSH "Hello\e[CWorld" ?screen_chars 0,0,1,80 = 0x48,0x65,0x6c,0x6c,0x6f,0x20,0x57,0x6f,0x72,0x6c,0x64 ?screen_text 0,0,1,80 = 0x48,0x65,0x6c,0x6c,0x6f,0x20,0x57,0x6f,0x72,0x6c,0x64 !Linefeed padding RESET PUSH "Hello\r\nWorld" ?screen_chars 0,0,2,80 = 0x48,0x65,0x6c,0x6c,0x6f,0x0a,0x57,0x6f,0x72,0x6c,0x64 ?screen_text 0,0,2,80 = 0x48,0x65,0x6c,0x6c,0x6f,0x0a,0x57,0x6f,0x72,0x6c,0x64 !Altscreen RESET PUSH "P" ?screen_chars 0,0,1,80 = 0x50 PUSH "\e[?1049h" ?screen_chars 0,0,1,80 = PUSH "\e[2K\e[HA" ?screen_chars 0,0,1,80 = 0x41 PUSH "\e[?1049l" ?screen_chars 0,0,1,80 = 0x50