Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–240 unchanged (240 lines)
241 },
242 })
243 local screen = Screen.new()
244 feed('call confirm("Ok?")<CR>')
245 screen:try_resize(screen._width + 1, screen._height)
246 screen:expect([[
247 |
248 {1:~ }|*10
249 {3: }|
250 {6:Ok?} |
251 {6:[O]k: }^ |
252 ]])
253 -- And resizing the next event loop iteration also works.
254 feed('k')
255 screen:try_resize(screen._width, screen._height + 1)
256 screen:expect([[
257 |
258 {1:~ }|*11
259 {3: }|
260 {6:Ok?} |
261 {6:[O]k: }^ |
262 ]])
263 end)
264end)
265

After

…lines 1–240 unchanged (240 lines)
241 },
242 })
243 local screen = Screen.new()
244 feed('call confirm("Ok?")<CR>')
245 screen:try_resize(screen._width + 1, screen._height)
246 screen:expect([[
247 |*10
248 {3: }|
249 |
250 {6:Ok?} |
251 {6:[O]k: }^ |
252 ]])
253 -- And resizing the next event loop iteration also works.
254 feed('k')
255 screen:try_resize(screen._width, screen._height + 1)
256 screen:expect([[
257 |*11
258 {3: }|
259 |
260 {6:Ok?} |
261 {6:[O]k: }^ |
262 ]])
263 end)
264end)
265

Before

chunk
comment
-- "--"
comment_content " Tests for (protocol-driven) ui2, intended to replace the le"...
variable_declaration
local "local"
assignment_statement
variable_list
identifier "t"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
' "'"
string_content "test.testutil"
' "'"
) ")"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "n"
= "="
expression_list
function_call
function_call
identifier "require"
arguments
( "("
string
' "'"
string_content "test.functional.testnvim"
' "'"
) ")"
arguments
( "("
) ")"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "Screen"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
' "'"
string_content "test.functional.ui.screen"
' "'"
) ")"
variable_declaration (+32 nodes collapsed)
function_call (+799 nodes collapsed)
function_call
identifier "describe"
arguments
( "("
string
' "'"
string_content "cmdline2"
' "'"
, ","
function_definition
function "function"
parameters
( "("
) ")"
block
function_call
identifier "it"
arguments
( "("
string
' "'"
string_content "resizing during startup shows confirm prompt #36439"
' "'"
, ","
function_definition
function "function"
parameters
( "("
) ")"
block
function_call (+33 nodes collapsed)
variable_declaration
local "local"
assignment_statement
variable_list
identifier "screen"
= "="
expression_list
function_call
dot_index_expression
identifier "Screen"
. "."
identifier "new"
arguments
( "("
) ")"
function_call
identifier "feed"
arguments
( "("
string
' "'"
string_content "call confirm(\"Ok?\")<CR>"
' "'"
) ")"
function_call
method_index_expression
identifier "screen"
: ":"
identifier "try_resize"
arguments
( "("
binary_expression
dot_index_expression
identifier "screen"
. "."
identifier "_width"
+ "+"
number "1"
, ","
dot_index_expression
identifier "screen"
. "."
identifier "_height"
) ")"
function_call
method_index_expression
identifier "screen"
: ":"
identifier "expect"
arguments
( "("
string
[[ "[["
string_content "\n "...
]] "]]"
) ")"
comment
-- "--"
comment_content " And resizing the next event loop iteration also works."
function_call
identifier "feed"
arguments
( "("
string
' "'"
string_content "k"
' "'"
) ")"
function_call
method_index_expression
identifier "screen"
: ":"
identifier "try_resize"
arguments
( "("
dot_index_expression
identifier "screen"
. "."
identifier "_width"
, ","
binary_expression
dot_index_expression
identifier "screen"
. "."
identifier "_height"
+ "+"
number "1"
) ")"
function_call
method_index_expression
identifier "screen"
: ":"
identifier "expect"
arguments
( "("
string
[[ "[["
string_content "\n "...
]] "]]"
) ")"
end "end"
) ")"
end "end"
) ")"

After

chunk
comment
-- "--"
comment_content " Tests for (protocol-driven) ui2, intended to replace the le"...
variable_declaration
local "local"
assignment_statement
variable_list
identifier "t"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
' "'"
string_content "test.testutil"
' "'"
) ")"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "n"
= "="
expression_list
function_call
function_call
identifier "require"
arguments
( "("
string
' "'"
string_content "test.functional.testnvim"
' "'"
) ")"
arguments
( "("
) ")"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "Screen"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
' "'"
string_content "test.functional.ui.screen"
' "'"
) ")"
variable_declaration (+32 nodes collapsed)
function_call (+799 nodes collapsed)
function_call
identifier "describe"
arguments
( "("
string
' "'"
string_content "cmdline2"
' "'"
, ","
function_definition
function "function"
parameters
( "("
) ")"
block
function_call
identifier "it"
arguments
( "("
string
' "'"
string_content "resizing during startup shows confirm prompt #36439"
' "'"
, ","
function_definition
function "function"
parameters
( "("
) ")"
block
function_call (+33 nodes collapsed)
variable_declaration
local "local"
assignment_statement
variable_list
identifier "screen"
= "="
expression_list
function_call
dot_index_expression
identifier "Screen"
. "."
identifier "new"
arguments
( "("
) ")"
function_call
identifier "feed"
arguments
( "("
string
' "'"
string_content "call confirm(\"Ok?\")<CR>"
' "'"
) ")"
function_call
method_index_expression
identifier "screen"
: ":"
identifier "try_resize"
arguments
( "("
binary_expression
dot_index_expression
identifier "screen"
. "."
identifier "_width"
+ "+"
number "1"
, ","
dot_index_expression
identifier "screen"
. "."
identifier "_height"
) ")"
function_call
method_index_expression
identifier "screen"
: ":"
identifier "expect"
arguments
( "("
string
[[ "[["
string_content "\n "...
]] "]]"
) ")"
comment
-- "--"
comment_content " And resizing the next event loop iteration also works."
function_call
identifier "feed"
arguments
( "("
string
' "'"
string_content "k"
' "'"
) ")"
function_call
method_index_expression
identifier "screen"
: ":"
identifier "try_resize"
arguments
( "("
dot_index_expression
identifier "screen"
. "."
identifier "_width"
, ","
binary_expression
dot_index_expression
identifier "screen"
. "."
identifier "_height"
+ "+"
number "1"
) ")"
function_call
method_index_expression
identifier "screen"
: ":"
identifier "expect"
arguments
( "("
string
[[ "[["
string_content "\n "...
]] "]]"
) ")"
end "end"
) ")"
end "end"
) ")"