MCPcopy Create free account
hub / github.com/NPP-JSONViewer/JSON-Viewer / GetIndent

Method GetIndent

src/NppJsonViewer/ScintillaEditor.cpp:88–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88auto 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
96void ScintillaEditor::RefreshSelectionPos()
97{

Callers 1

GetFormatSettingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected