Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
starg2 committed Jan 11, 2025
1 parent d58cce8 commit a06f752
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions interface/w32g_new_console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -763,11 +763,11 @@ class NewConsoleWindow
break;

case SB_PAGELEFT:
m_CurrentLeftColumnNumber = std::max(0, m_CurrentLeftColumnNumber - GetVisileColumnsInWindow());
m_CurrentLeftColumnNumber = std::max(0, m_CurrentLeftColumnNumber - GetVisibleColumnsInWindow());
break;

case SB_PAGERIGHT:
m_CurrentLeftColumnNumber = std::min(m_CurrentLeftColumnNumber + GetVisileColumnsInWindow(), GetMaxLeftColumnNumber());
m_CurrentLeftColumnNumber = std::min(m_CurrentLeftColumnNumber + GetVisibleColumnsInWindow(), GetMaxLeftColumnNumber());
break;

case SB_THUMBPOSITION:
Expand Down Expand Up @@ -1050,7 +1050,7 @@ class NewConsoleWindow

int GetMaxLeftColumnNumber() const
{
return std::max(0, static_cast<int>(m_Buffer.GetMaxColumnLength() - GetVisileColumnsInWindow()));
return std::max(0, static_cast<int>(m_Buffer.GetMaxColumnLength() - GetVisibleColumnsInWindow()));
}

int GetVisibleLinesInWindow() const
Expand All @@ -1060,7 +1060,7 @@ class NewConsoleWindow
return (rc.bottom - rc.top) / m_FontHeight;
}

int GetVisileColumnsInWindow() const
int GetVisibleColumnsInWindow() const
{
RECT rc;
::GetClientRect(m_hWnd, &rc);
Expand Down Expand Up @@ -1117,7 +1117,7 @@ class NewConsoleWindow
sih.fMask = SIF_ALL | SIF_DISABLENOSCROLL;
sih.nMin = 0;
sih.nMax = m_Buffer.GetMaxLastColumnNumber();
sih.nPage = static_cast<UINT>(GetVisileColumnsInWindow());
sih.nPage = static_cast<UINT>(GetVisibleColumnsInWindow());
sih.nPos = m_CurrentLeftColumnNumber;

::SetScrollInfo(m_hWnd, SB_VERT, &siv, true);
Expand Down

0 comments on commit a06f752

Please sign in to comment.