mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 20:38:18 +00:00
fixup: 30 col resize to scroll debug
This commit is contained in:
@@ -7,7 +7,7 @@ describe(':debug', function()
|
|||||||
local screen
|
local screen
|
||||||
before_each(function()
|
before_each(function()
|
||||||
clear()
|
clear()
|
||||||
screen = Screen.new(50, 14)
|
screen = Screen.new(30, 14)
|
||||||
screen:set_default_attr_ids({
|
screen:set_default_attr_ids({
|
||||||
[1] = {bold = true, foreground = Screen.colors.Blue1},
|
[1] = {bold = true, foreground = Screen.colors.Blue1},
|
||||||
[2] = {bold = true, reverse = true},
|
[2] = {bold = true, reverse = true},
|
||||||
@@ -19,11 +19,7 @@ describe(':debug', function()
|
|||||||
it('scrolls messages correctly', function()
|
it('scrolls messages correctly', function()
|
||||||
feed(':echoerr bork<cr>')
|
feed(':echoerr bork<cr>')
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
^ |
|
|
|
||||||
{1:~ }|
|
|
||||||
{1:~ }|
|
|
||||||
{1:~ }|
|
|
||||||
{1:~ }|
|
|
||||||
{1:~ }|
|
{1:~ }|
|
||||||
{1:~ }|
|
{1:~ }|
|
||||||
{1:~ }|
|
{1:~ }|
|
||||||
@@ -32,7 +28,11 @@ describe(':debug', function()
|
|||||||
{1:~ }|
|
{1:~ }|
|
||||||
{1:~ }|
|
{1:~ }|
|
||||||
{1:~ }|
|
{1:~ }|
|
||||||
|
{2: }|
|
||||||
{3:E121: Undefined variable: bork}|
|
{3:E121: Undefined variable: bork}|
|
||||||
|
|
|
||||||
|
{4:Press ENTER or type command to}|
|
||||||
|
{4: continue}^ |
|
||||||
]])
|
]])
|
||||||
|
|
||||||
feed(':debug echo "aa"| echo "bb"<cr>')
|
feed(':debug echo "aa"| echo "bb"<cr>')
|
||||||
@@ -43,12 +43,12 @@ describe(':debug', function()
|
|||||||
{1:~ }|
|
{1:~ }|
|
||||||
{1:~ }|
|
{1:~ }|
|
||||||
{1:~ }|
|
{1:~ }|
|
||||||
{1:~ }|
|
|
||||||
{1:~ }|
|
|
||||||
{1:~ }|
|
|
||||||
{1:~ }|
|
|
||||||
{2: }|
|
{2: }|
|
||||||
Entering Debug mode. Type "cont" to continue. |
|
{3:E121: Undefined variable: bork}|
|
||||||
|
|
|
||||||
|
{4:Press ENTER or type command to}|
|
||||||
|
Entering Debug mode. Type "co|
|
||||||
|
nt" to continue. |
|
||||||
cmd: echo "aa"| echo "bb" |
|
cmd: echo "aa"| echo "bb" |
|
||||||
>^ |
|
>^ |
|
||||||
]])
|
]])
|
||||||
@@ -58,12 +58,12 @@ describe(':debug', function()
|
|||||||
|
|
|
|
||||||
{1:~ }|
|
{1:~ }|
|
||||||
{1:~ }|
|
{1:~ }|
|
||||||
{1:~ }|
|
|
||||||
{1:~ }|
|
|
||||||
{1:~ }|
|
|
||||||
{1:~ }|
|
|
||||||
{2: }|
|
{2: }|
|
||||||
Entering Debug mode. Type "cont" to continue. |
|
{3:E121: Undefined variable: bork}|
|
||||||
|
|
|
||||||
|
{4:Press ENTER or type command to}|
|
||||||
|
Entering Debug mode. Type "co|
|
||||||
|
nt" to continue. |
|
||||||
cmd: echo "aa"| echo "bb" |
|
cmd: echo "aa"| echo "bb" |
|
||||||
>step |
|
>step |
|
||||||
aa |
|
aa |
|
||||||
@@ -73,20 +73,20 @@ describe(':debug', function()
|
|||||||
|
|
||||||
feed('step<cr>')
|
feed('step<cr>')
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
|
|
|
||||||
{1:~ }|
|
|
||||||
{1:~ }|
|
|
||||||
{1:~ }|
|
|
||||||
{1:~ }|
|
|
||||||
{2: }|
|
{2: }|
|
||||||
Entering Debug mode. Type "cont" to continue. |
|
{3:E121: Undefined variable: bork}|
|
||||||
|
|
|
||||||
|
{4:Press ENTER or type command to}|
|
||||||
|
Entering Debug mode. Type "co|
|
||||||
|
nt" to continue. |
|
||||||
cmd: echo "aa"| echo "bb" |
|
cmd: echo "aa"| echo "bb" |
|
||||||
>step |
|
>step |
|
||||||
aa |
|
aa |
|
||||||
cmd: echo "bb" |
|
cmd: echo "bb" |
|
||||||
>step |
|
>step |
|
||||||
bb |
|
bb |
|
||||||
{4:Press ENTER or type command to continue}^ |
|
{4:Press ENTER or type command to}|
|
||||||
|
{4: continue}^ |
|
||||||
]])
|
]])
|
||||||
|
|
||||||
feed('<cr>')
|
feed('<cr>')
|
||||||
|
Reference in New Issue
Block a user