view src/libvterm/t/69screen_reflow.test @ 33311:1f3bcb7f3bd0 v9.0.1921

patch 9.0.1921: not possible to use the jumplist like a stack Commit: https://github.com/vim/vim/commit/87018255e3ad0f4dfa03e20318836d24af721caf Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Wed Sep 20 20:20:04 2023 +0200 patch 9.0.1921: not possible to use the jumplist like a stack Problem: not possible to use the jumplist like a stack Solution: Add the 'jumpoptions' setting to make the jumplist a stack. Add an option for using jumplist like tag stack related: #7738 closes: #13134 ported from NeoVim: - https://neovim.io/doc/user/motion.html#jumplist-stack - neovim/neovim@39094b3 - neovim/neovim#11530 - https://vi.stackexchange.com/questions/18344/how-to-change-jumplist-behavior Based on the feedback in the previous PR, it looks like many people like this option. Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com> Co-authored-by: butwerenotthereyet <58348703+butwerenotthereyet@users.noreply.github.com>
author Christian Brabandt <cb@256bit.org>
date Wed, 20 Sep 2023 20:30:06 +0200
parents b13f723a7ec6
children
line wrap: on
line source

INIT
# Run these tests on a much smaller default screen, so debug output is
# nowhere near as noisy
RESIZE 5,10
WANTSTATE
WANTSCREEN r
RESET

!Resize wider reflows wide lines
RESET
PUSH "A"x12
  ?screen_row 0 = "AAAAAAAAAA"
  ?screen_row 1 = "AA"
  ?lineinfo 1 = cont
  ?cursor = 1,2
RESIZE 5,15
  ?screen_row 0 = "AAAAAAAAAAAA"
  ?screen_row 1 = 
  ?lineinfo 1 =
  ?cursor = 0,12
RESIZE 5,20
  ?screen_row 0 = "AAAAAAAAAAAA"
  ?screen_row 1 = 
  ?lineinfo 1 =
  ?cursor = 0,12

!Resize narrower can create continuation lines
RESET
RESIZE 5,10
PUSH "ABCDEFGHI"
  ?screen_row 0 = "ABCDEFGHI"
  ?screen_row 1 = ""
  ?lineinfo 1 =
  ?cursor = 0,9
RESIZE 5,8
  ?screen_row 0 = "ABCDEFGH"
  ?screen_row 1 = "I"
  ?lineinfo 1 = cont
  ?cursor = 1,1
RESIZE 5,6
  ?screen_row 0 = "ABCDEF"
  ?screen_row 1 = "GHI"
  ?lineinfo 1 = cont
  ?cursor = 1,3

!Shell wrapped prompt behaviour
RESET
RESIZE 5,10
PUSH "PROMPT GOES HERE\r\n> \r\n\r\nPROMPT GOES HERE\r\n> "
  ?screen_row 0 = "> "
  ?screen_row 1 = ""
  ?screen_row 2 = "PROMPT GOE"
  ?screen_row 3 = "S HERE"
  ?lineinfo 3 = cont
  ?screen_row 4 = "> "
  ?cursor = 4,2
RESIZE 5,11
  ?screen_row 0 = "> "
  ?screen_row 1 = ""
  ?screen_row 2 = "PROMPT GOES"
  ?screen_row 3 = " HERE"
  ?lineinfo 3 = cont
  ?screen_row 4 = "> "
  ?cursor = 4,2
RESIZE 5,12
  ?screen_row 0 = "> "
  ?screen_row 1 = ""
  ?screen_row 2 = "PROMPT GOES "
  ?screen_row 3 = "HERE"
  ?lineinfo 3 = cont
  ?screen_row 4 = "> "
  ?cursor = 4,2
RESIZE 5,16
  ?screen_row 0 = "> "
  ?screen_row 1 = ""
  ?screen_row 2 = "PROMPT GOES HERE"
  ?lineinfo 3 =
  ?screen_row 3 = "> "
  ?cursor = 3,2

!Cursor goes missing
# For more context: https://github.com/neovim/neovim/pull/21124
RESET
RESIZE 5,5
RESIZE 3,1
PUSH "\x1b[2;1Habc\r\n\x1b[H"
RESIZE 1,1
  ?cursor = 0,0