1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:28:13 +00:00

TextEditor: Added a setter for soft_tab_width

This commit is contained in:
lucastarche 2021-03-15 18:28:00 -03:00 committed by Andreas Kling
parent 78f0cabb17
commit 0071dc7be4

View file

@ -85,6 +85,7 @@ public:
void set_automatic_indentation_enabled(bool enabled) { m_automatic_indentation_enabled = enabled; }
virtual int soft_tab_width() const final { return m_soft_tab_width; }
void set_soft_tab_width(int width) { m_soft_tab_width = width; };
WrappingMode wrapping_mode() const { return m_wrapping_mode; }
bool is_wrapping_enabled() const { return m_wrapping_mode != WrappingMode::NoWrap; }