Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default tabstop is too much - cut it in half #389

Merged
merged 1 commit into from
Jun 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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