diff options
author | thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> | 2022-02-02 19:28:58 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-02-07 15:05:22 +0000 |
commit | f35a6c13abf60b8ca8776c36e975347bbfcc9dcd (patch) | |
tree | 25a52987cf1fb1f380022124beeaff05a00cf74b /Userland/Applications | |
parent | b2df863b550b07002db0f08a04de10f7676edf3e (diff) | |
download | serenity-f35a6c13abf60b8ca8776c36e975347bbfcc9dcd.zip |
LibGUI+TextEditor: Highlight the entire current line
And fix Line Highlighting's duplicate alt-menu shortcut.
Previously only text on the cursor's line was highlighted. This makes
discerning cursor focus on empty lines easier.
Diffstat (limited to 'Userland/Applications')
-rw-r--r-- | Userland/Applications/TextEditor/MainWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/TextEditor/MainWidget.cpp b/Userland/Applications/TextEditor/MainWidget.cpp index 1622cb87be..4d4e692376 100644 --- a/Userland/Applications/TextEditor/MainWidget.cpp +++ b/Userland/Applications/TextEditor/MainWidget.cpp @@ -519,12 +519,12 @@ void MainWidget::initialize_menubar(GUI::Window& window) view_menu.add_action(*m_visualize_trailing_whitespace_action); view_menu.add_action(*m_visualize_leading_whitespace_action); - m_cursor_line_highlighting_action = GUI::Action::create_checkable("Line High&lighting", [&](auto&) { + m_cursor_line_highlighting_action = GUI::Action::create_checkable("L&ine Highlighting", [&](auto&) { m_editor->set_cursor_line_highlighting(m_cursor_line_highlighting_action->is_checked()); }); m_cursor_line_highlighting_action->set_checked(true); - m_cursor_line_highlighting_action->set_status_tip("Highlight text on the cursor's line"); + m_cursor_line_highlighting_action->set_status_tip("Highlight the current line"); view_menu.add_action(*m_cursor_line_highlighting_action); |