A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/2ab2af598eff1bea9a4aa5da51d6c202173d5ee7 below:

fix signs · neovim/neovim@2ab2af5 · GitHub

@@ -1372,6 +1372,7 @@ describe('decorations: signs', function()

1372 1372

screen:set_default_attr_ids {

1373 1373

[1] = {foreground = Screen.colors.Blue4, background = Screen.colors.Grey};

1374 1374

[2] = {foreground = Screen.colors.Blue1, bold = true};

1375 +

[3] = {background = Screen.colors.Yellow1, foreground = Screen.colors.Blue1};

1375 1376

}

1376 1377 1377 1378

ns = meths.create_namespace 'test'

@@ -1634,4 +1635,99 @@ l5

1634 1635 1635 1636

end)

1636 1637 1638 +

it('can add lots of signs', function()

1639 +

screen:try_resize(40, 10)

1640 +

command 'normal 10oa b c d e f g h'

1641 + 1642 +

for i = 1, 10 do

1643 +

meths.buf_set_extmark(0, ns, i, 0, { end_col = 1, hl_group='Todo' })

1644 +

meths.buf_set_extmark(0, ns, i, 2, { end_col = 3, hl_group='Todo' })

1645 +

meths.buf_set_extmark(0, ns, i, 4, { end_col = 5, hl_group='Todo' })

1646 +

meths.buf_set_extmark(0, ns, i, 6, { end_col = 7, hl_group='Todo' })

1647 +

meths.buf_set_extmark(0, ns, i, 8, { end_col = 9, hl_group='Todo' })

1648 +

meths.buf_set_extmark(0, ns, i, 10, { end_col = 11, hl_group='Todo' })

1649 +

meths.buf_set_extmark(0, ns, i, 12, { end_col = 13, hl_group='Todo' })

1650 +

meths.buf_set_extmark(0, ns, i, 14, { end_col = 15, hl_group='Todo' })

1651 +

meths.buf_set_extmark(0, ns, i, -1, { sign_text='W' })

1652 +

meths.buf_set_extmark(0, ns, i, -1, { sign_text='X' })

1653 +

meths.buf_set_extmark(0, ns, i, -1, { sign_text='Y' })

1654 +

meths.buf_set_extmark(0, ns, i, -1, { sign_text='Z' })

1655 +

end

1656 + 1657 +

screen:expect{grid=[[

1658 +

X Y Z W {3:a} {3:b} {3:c} {3:d} {3:e} {3:f} {3:g} {3:h} |

1659 +

X Y Z W {3:a} {3:b} {3:c} {3:d} {3:e} {3:f} {3:g} {3:h} |

1660 +

X Y Z W {3:a} {3:b} {3:c} {3:d} {3:e} {3:f} {3:g} {3:h} |

1661 +

X Y Z W {3:a} {3:b} {3:c} {3:d} {3:e} {3:f} {3:g} {3:h} |

1662 +

X Y Z W {3:a} {3:b} {3:c} {3:d} {3:e} {3:f} {3:g} {3:h} |

1663 +

X Y Z W {3:a} {3:b} {3:c} {3:d} {3:e} {3:f} {3:g} {3:h} |

1664 +

X Y Z W {3:a} {3:b} {3:c} {3:d} {3:e} {3:f} {3:g} {3:h} |

1665 +

X Y Z W {3:a} {3:b} {3:c} {3:d} {3:e} {3:f} {3:g} {3:h} |

1666 +

X Y Z W {3:a} {3:b} {3:c} {3:d} {3:e} {3:f} {3:g} {3:^h} |

1667 +

|

1668 +

]]}

1669 +

end)

1670 + 1671 +

end)

1672 + 1673 +

describe('decorations: virt_text', function()

1674 +

local screen

1675 + 1676 +

before_each(function()

1677 +

clear()

1678 +

screen = Screen.new(50, 10)

1679 +

screen:attach()

1680 +

screen:set_default_attr_ids {

1681 +

[1] = {foreground = Screen.colors.Brown};

1682 +

[2] = {foreground = Screen.colors.Fuchsia};

1683 +

[3] = {bold = true, foreground = Screen.colors.Blue1};

1684 +

}

1685 +

end)

1686 + 1687 +

it('avoids regression in #17638', function()

1688 +

exec_lua[[

1689 +

vim.wo.number = true

1690 +

vim.wo.relativenumber = true

1691 +

]]

1692 + 1693 +

command 'normal 4ohello'

1694 +

command 'normal aVIRTUAL'

1695 + 1696 +

local ns = meths.create_namespace('test')

1697 + 1698 +

meths.buf_set_extmark(0, ns, 2, 0, {

1699 +

virt_text = {{"hello", "String"}},

1700 +

virt_text_win_col = 20,

1701 +

})

1702 + 1703 +

screen:expect{grid=[[

1704 +

{1: 4 } |

1705 +

{1: 3 }hello |

1706 +

{1: 2 }hello {2:hello} |

1707 +

{1: 1 }hello |

1708 +

{1:5 }helloVIRTUA^L |

1709 +

{3:~ }|

1710 +

{3:~ }|

1711 +

{3:~ }|

1712 +

{3:~ }|

1713 +

|

1714 +

]]}

1715 + 1716 +

-- Trigger a screen update

1717 +

feed('k')

1718 + 1719 +

screen:expect{grid=[[

1720 +

{1: 3 } |

1721 +

{1: 2 }hello |

1722 +

{1: 1 }hello {2:hello} |

1723 +

{1:4 }hell^o |

1724 +

{1: 1 }helloVIRTUAL |

1725 +

{3:~ }|

1726 +

{3:~ }|

1727 +

{3:~ }|

1728 +

{3:~ }|

1729 +

|

1730 +

]]}

1731 +

end)

1732 + 1637 1733

end)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4