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 -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202104291819.13TIJA033313825%40masaka.moolenaar.net.