Skip to content

Commit

Permalink
Merge pull request #389 from stephenegriffin/tabstop
Browse files Browse the repository at this point in the history
Default tabstop is too much - cut it in half
  • Loading branch information
stephenegriffin committed Jun 29, 2020
2 parents 41b16ae + bf11e7b commit d55e839
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion UI/ViewPane/TextPane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,12 @@ namespace viewpane
// Clear the modify bits so we can detect changes later
m_EditBox.SetModify(false);

// Remove the awful autoselect of the edit control that scrolls to the end of multiline text
if (m_bMultiline)
{
LONG stops = 16; // 16 dialog template units. Default is 32.
EC_B(::SendMessage(m_EditBox.m_hWnd, EM_SETTABSTOPS, WPARAM{1}, reinterpret_cast<LPARAM>(&stops)));

// Remove the awful autoselect of the edit control that scrolls to the end of multiline text
::PostMessage(m_EditBox.m_hWnd, EM_SETSEL, static_cast<WPARAM>(0), static_cast<LPARAM>(0));
}
}
Expand Down

0 comments on commit d55e839

Please sign in to comment.