| 86 | } |
| 87 | |
| 88 | auto ScintillaEditor::GetIndent() const -> std::tuple<char, unsigned> |
| 89 | { |
| 90 | bool useTabs = ::SendMessage(m_hScintilla, SCI_GETUSETABS, 0, 0); |
| 91 | char indentChar = useTabs ? '\t' : ' '; |
| 92 | unsigned indentLen = useTabs ? 1 : static_cast<unsigned>(::SendMessage(m_hScintilla, SCI_GETTABWIDTH, 0, 0)); |
| 93 | return std::tuple<char, unsigned>(indentChar, indentLen); |
| 94 | } |
| 95 | |
| 96 | void ScintillaEditor::RefreshSelectionPos() |
| 97 | { |