Commit 80a5509
committed
gh-154788: Make curses window.getparent() unconditional
getparent() calls no curses function, it returns the window's stored parent,
but it was compiled only when the ncurses extension functions were present.
Close the guard after getscrreg(), which does need it.
The test moves out of test_state_getters, which is gated on is_scrollok(), so
that getparent() is covered on backends without the extensions.1 parent 85c8bce commit 80a5509
2 files changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1718 | 1718 | | |
1719 | 1719 | | |
1720 | 1720 | | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
1721 | 1729 | | |
1722 | 1730 | | |
1723 | 1731 | | |
| |||
1771 | 1779 | | |
1772 | 1780 | | |
1773 | 1781 | | |
1774 | | - | |
| 1782 | + | |
1775 | 1783 | | |
1776 | 1784 | | |
1777 | | - | |
1778 | 1785 | | |
1779 | 1786 | | |
1780 | | - | |
1781 | 1787 | | |
1782 | 1788 | | |
1783 | 1789 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1870 | 1870 | | |
1871 | 1871 | | |
1872 | 1872 | | |
| 1873 | + | |
1873 | 1874 | | |
1874 | 1875 | | |
1875 | 1876 | | |
| |||
1882 | 1883 | | |
1883 | 1884 | | |
1884 | 1885 | | |
1885 | | - | |
1886 | 1886 | | |
1887 | 1887 | | |
1888 | 1888 | | |
| |||
4963 | 4963 | | |
4964 | 4964 | | |
4965 | 4965 | | |
4966 | | - | |
4967 | 4966 | | |
4968 | 4967 | | |
4969 | 4968 | | |
4970 | | - | |
4971 | 4969 | | |
4972 | 4970 | | |
4973 | 4971 | | |
| |||
0 commit comments