To: vim_dev@googlegroups.com Subject: Patch 8.2.2818 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2818 Problem: No jump added to jumplist when opening terminal in current window. Solution: Call setpcmark(). (closes #8158) Files: src/terminal.c, src/testdir/test_terminal.vim *** ../vim-8.2.2817/src/terminal.c 2021-03-29 20:49:01.486055361 +0200 --- src/terminal.c 2021-04-29 20:17:56.602913640 +0200 *************** *** 473,478 **** --- 473,479 ---- ga_init2(&term->tl_scrollback_postponed, sizeof(sb_line_T), 300); ga_init2(&term->tl_osc_buf, sizeof(char), 300); + setpcmark(); CLEAR_FIELD(split_ea); if (opt->jo_curwin) { *** ../vim-8.2.2817/src/testdir/test_terminal.vim 2021-04-03 17:22:24.752228600 +0200 --- src/testdir/test_terminal.vim 2021-04-29 20:16:46.531089833 +0200 *************** *** 2029,2033 **** --- 2029,2040 ---- augroup END endfunc + func Test_terminal_adds_jump() + clearjumps + call term_start("ls", #{curwin: 1}) + call assert_equal(1, getjumplist()[0]->len()) + bwipe! + endfunc + " vim: shiftwidth=2 sts=2 expandtab *** ../vim-8.2.2817/src/version.c 2021-04-28 20:40:39.803852460 +0200 --- src/version.c 2021-04-29 20:18:26.530836010 +0200 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2818, /**/ -- Some of the well known MS-Windows errors: EMEMORY Memory error caused by..., eh... ELICENSE Your license has expired, give us more money! EMOUSE Mouse moved, reinstall Windows EILLEGAL Illegal error, you are not allowed to see this EVIRUS Undetectable virus found /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///