From 6e6b660e95e6a30e4fd8bb8734da1abf258ef660 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sun, 20 Sep 2020 23:11:51 -0400 Subject: vim-patch:8.2.1088: a very long translation might cause a buffer overflow Problem: A very long translation might cause a buffer overflow. Solution: Trunctate the message if needed. https://github.com/vim/vim/commit/6378b21d6dd38cc0f80aa6d31d747db6c287483b N/A patches for version.c: vim-patch:8.1.0524: terminal test fails on Windows Problem: Terminal test fails on Windows. Solution: Skip Test_terminal_does_not_truncate_last_newlines() for now. https://github.com/vim/vim/commit/c2c02574ec76f8d44b948cede9cca38ac91622de vim-patch:8.1.1613: popup window test fails with Athena and Motif Problem: Popup window test fails with Athena and Motif. Solution: Compute the highlight attribut when the GUI is not active. https://github.com/vim/vim/commit/a83e70000f106a1e1e0f86e8e362ec94c0df074c vim-patch:8.2.1713: Motif GUI: crash when setting menu colors Problem: Motif GUI: crash when setting menu colors. (Andrzej Bylicki) Solution: Add {} to make "n" incremented correctly. (closes vim/vim#6989, closes vim/vim#5948) https://github.com/vim/vim/commit/7795bfea6d30c85f2c05d986a0cfe4019df4d74d vim-patch:8.2.1715: Motif GUI: commented out code missed {} Problem: Motif GUI: commented out code missed {}. Solution: Add {} and reenable the code. (similar to vim/vim#6989) https://github.com/vim/vim/commit/26cd3063b2e2084cfd17989e7584c64f278aaaef vim-patch:8.2.1717 Problem: MS-Windows installer doesn't have Russian translations. Solution: Add Russian translations. (closes vim/vim#6985) https://github.com/vim/vim/commit/809fcecddce59ccb59384d63f5e0505c89f69209 vim-patch:8.2.1721: MS-Windows installer doesn't work Problem: MS-Windows installer doesn't work. Solution: Write "Russian" in ASCII. (closes vim/vim#6995, see #). https://github.com/vim/vim/commit/7f9c9c51a3680f120e1c3f2bb7239c9fa115b27f vim-patch:8.2.1735: Github actions appear to timeout too soon Problem: Github actions appear to timeout too soon. Solution: use "timeout" instead of "ping". https://github.com/vim/vim/commit/851d108313317a062371a6750e6c6bf370a9bafa vim-patch:8.2.1738: Mac: str2float() recognizes comma instead of decimal point Problem: Mac: str2float() recognizes comma instead of decimal point. Solution: Set LC_NUMERIC to "C". (closes vim/vim#7003) https://github.com/vim/vim/commit/509f8031b2b347c033327ef33f3e5573a0595dbc vim-patch:8.2.1745: tiny version doesn't build Problem: Tiny version doesn't build. Solution: Add dummy ex_var() function. https://github.com/vim/vim/commit/d47f50b3312af2b8baf37505b7a589daf3f7d942 --- src/nvim/fileio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 286f2b4fca..ed8b72e2be 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -210,7 +210,8 @@ void filemess(buf_T *buf, char_u *name, char_u *s, int attr) if (msg_silent != 0) { return; } - add_quoted_fname((char *)IObuff, IOSIZE - 80, buf, (const char *)name); + add_quoted_fname((char *)IObuff, IOSIZE - 100, buf, (const char *)name); + // Avoid an over-long translation to cause trouble. xstrlcat((char *)IObuff, (const char *)s, IOSIZE); // For the first message may have to start a new line. // For further ones overwrite the previous one, reset msg_scroll before -- cgit From 25b9a400a98cc09f8b5e91629d778814c0b5cf52 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Tue, 22 Sep 2020 21:57:08 -0400 Subject: vim-patch:8.2.1725: not all Pascal files are recognized Problem: Not all Pascal files are recognized. Solution: Add filetype patterns. (Doug Kearns) https://github.com/vim/vim/commit/44aaf5416e0121500dd52b7cab306d7618b4fe53 --- src/nvim/testdir/test_filetype.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index 617e3dfe41..9f8939f2f6 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -326,7 +326,7 @@ let s:filename_checks = { \ 'pamconf': ['/etc/pam.conf'], \ 'pamenv': ['/etc/security/pam_env.conf', '/home/user/.pam_environment'], \ 'papp': ['file.papp', 'file.pxml', 'file.pxsl'], - \ 'pascal': ['file.pas', 'file.dpr'], + \ 'pascal': ['file.pas', 'file.pp', 'file.dpr', 'file.lpr'], \ 'passwd': ['any/etc/passwd', 'any/etc/passwd-', 'any/etc/passwd.edit', 'any/etc/shadow', 'any/etc/shadow-', 'any/etc/shadow.edit', 'any/var/backups/passwd.bak', 'any/var/backups/shadow.bak'], \ 'pccts': ['file.g'], \ 'pdf': ['file.pdf'], @@ -455,7 +455,7 @@ let s:filename_checks = { \ 'texmf': ['texmf.cnf'], \ 'text': ['file.text', 'README'], \ 'tf': ['file.tf', '.tfrc', 'tfrc'], - \ 'tidy': ['.tidyrc', 'tidyrc'], + \ 'tidy': ['.tidyrc', 'tidyrc', 'tidy.conf'], \ 'tilde': ['file.t.html'], \ 'tli': ['file.tli'], \ 'tmux': ['tmuxfile.conf', '.tmuxfile.conf'], -- cgit From e22c15682a76b6c531fea5b6d8896ecbaf582253 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 25 Sep 2020 22:02:06 -0400 Subject: test/old: enable passing tests Some TODO tests are passing now. test_override('ALL', 1) clears previous overrides so it's safe to comment out and execute the test. Replace test_feedinput() with nvim_input(). Replace test_setmouse with nvim_input_mouse(). Note that test_setmouse is 1-based and nvim_input_mouse is 0-based. --- src/nvim/testdir/test_edit.vim | 10 ++++------ src/nvim/testdir/test_functions.vim | 14 +++++++------- src/nvim/testdir/test_timers.vim | 7 ++++--- 3 files changed, 15 insertions(+), 16 deletions(-) (limited to 'src') diff --git a/src/nvim/testdir/test_edit.vim b/src/nvim/testdir/test_edit.vim index dbe12fc8fc..7f456ffbce 100644 --- a/src/nvim/testdir/test_edit.vim +++ b/src/nvim/testdir/test_edit.vim @@ -735,17 +735,16 @@ func! Test_edit_CTRL_O() endfunc func! Test_edit_CTRL_R() - throw 'skipped: Nvim does not support test_override()' " Insert Register new - call test_override("ALL", 1) + " call test_override("ALL", 1) set showcmd call feedkeys("AFOOBAR eins zwei\", 'tnix') call feedkeys("O\.", 'tnix') call feedkeys("O\=10*500\\", 'tnix') call feedkeys("O\=getreg('=', 1)\\", 'tnix') call assert_equal(["getreg('=', 1)", '5000', "FOOBAR eins zwei", "FOOBAR eins zwei"], getline(1, '$')) - call test_override("ALL", 0) + " call test_override("ALL", 0) set noshowcmd bw! endfunc @@ -957,7 +956,6 @@ func! Test_edit_DROP() endfunc func! Test_edit_CTRL_V() - throw 'skipped: Nvim does not support test_override()' if has("ebcdic") return endif @@ -967,7 +965,7 @@ func! Test_edit_CTRL_V() " force some redraws set showmode showcmd "call test_override_char_avail(1) - call test_override('ALL', 1) + " call test_override('ALL', 1) call feedkeys("A\\\\\\\", 'tnix') call assert_equal(["abc\x0e\x0c\x02"], getline(1, '$')) @@ -980,7 +978,7 @@ func! Test_edit_CTRL_V() set norl endif - call test_override('ALL', 0) + " call test_override('ALL', 0) set noshowmode showcmd bw! endfunc diff --git a/src/nvim/testdir/test_functions.vim b/src/nvim/testdir/test_functions.vim index c29e0410a9..8fa70a5313 100644 --- a/src/nvim/testdir/test_functions.vim +++ b/src/nvim/testdir/test_functions.vim @@ -1222,16 +1222,16 @@ func Test_reg_executing_and_recording() endfunc func Test_getchar() - throw 'skipped: Nvim does not support test_setmouse()' call feedkeys('a', '') call assert_equal(char2nr('a'), getchar()) - call test_setmouse(1, 3) - let v:mouse_win = 9 - let v:mouse_winid = 9 - let v:mouse_lnum = 9 - let v:mouse_col = 9 - call feedkeys("\", '') + " call test_setmouse(1, 3) + " let v:mouse_win = 9 + " let v:mouse_winid = 9 + " let v:mouse_lnum = 9 + " let v:mouse_col = 9 + " call feedkeys("\", '') + call nvim_input_mouse('left', 'press', 'S', 0, 0, 2) call assert_equal("\", getchar()) call assert_equal(1, v:mouse_win) call assert_equal(win_getid(1), v:mouse_winid) diff --git a/src/nvim/testdir/test_timers.vim b/src/nvim/testdir/test_timers.vim index cffd80ff4f..d5ea54b764 100644 --- a/src/nvim/testdir/test_timers.vim +++ b/src/nvim/testdir/test_timers.vim @@ -233,16 +233,17 @@ func Test_timer_catch_error() endfunc func FeedAndPeek(timer) - call test_feedinput('a') + " call test_feedinput('a') + call nvim_input('a') call getchar(1) endfunc func Interrupt(timer) - call test_feedinput("\") + " call test_feedinput("\") + call nvim_input("\") endfunc func Test_peek_and_get_char() - throw 'skipped: Nvim does not support test_feedinput()' if !has('unix') && !has('gui_running') return endif -- cgit