From 30120988430ad43c9686d19c10c41b879128c6ba Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 5 Jul 2019 11:35:32 +1000 Subject: Bug [#2118]. Add TabMinimumWidth property to API so applications can display overviews or minimaps with reasonable layout. --- src/Editor.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 2cf12f61f..dbcafeb89 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -6534,6 +6534,13 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_GETTABWIDTH: return pdoc->tabInChars; + case SCI_SETTABMINIMUMWIDTH: + SetAppearance(view.tabWidthMinimumPixels, static_cast(wParam)); + break; + + case SCI_GETTABMINIMUMWIDTH: + return view.tabWidthMinimumPixels; + case SCI_CLEARTABSTOPS: if (view.ClearTabstops(static_cast(wParam))) { const DocModification mh(SC_MOD_CHANGETABSTOPS, 0, 0, 0, nullptr, static_cast(wParam)); -- cgit v1.2.3