diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-02-19 16:47:18 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-19 18:52:26 +0100 |
commit | 307cd4a1daa14b9e24221525fa6ae27de0201e95 (patch) | |
tree | ea865eaa3a2e4b33cec7bd6ffc00e9cbd89f7291 /Userland/Utilities/watch.cpp | |
parent | bb8c8a67dc87afb51f10dfbe37cddf010d35d097 (diff) | |
download | serenity-307cd4a1daa14b9e24221525fa6ae27de0201e95.zip |
HackStudio: Make wrapping modes consistent
We were only setting the wrapping mode when triggering the action. So:
- Any editors open without triggering a wrapping-mode action would have
the default (WrapAtWords) instead of the selected item (NoWrap).
- Any editors opened after triggering an action would have the default
too.
This fixes both situations, by:
- Storing the current wrapping mode in `m_wrapping_mode`. Later this
could be loaded from the config.
- Changing that value any time a wrapping-mode action is triggered.
- Setting the wrapping mode on newly-created editors.
Diffstat (limited to 'Userland/Utilities/watch.cpp')
0 files changed, 0 insertions, 0 deletions