From a6ad2ff8b66866aeae17a8bee1eb54edfee331ad Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 5 Jul 2019 11:35:32 +1000 Subject: Backport: Bug [#2118]. Add TabMinimumWidth property to API so applications can display overviews or minimaps with reasonable layout. Backport of changeset 7700:e6efe007d2dc. --- src/Editor.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Editor.cxx') diff --git a/src/Editor.cxx b/src/Editor.cxx index 4cceb1f5d..cb7269685 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -6528,6 +6528,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