[frameworks/ktexteditor] src/view: vi-mode: Avoid redundant BLOCK in the status bar
Ismael Asensio <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 37351054fd0e45593282d57674b78445eed34e10 by Ismael Asensio.
Committed on 27/07/2026 at 16:36.
Pushed by iasensio into branch 'master'.
vi-mode: Avoid redundant BLOCK in the status bar
The extra indication of block selection mode in the status bar is
redundant with the correspondent VI mode ("[BLOCK] VI: VISUAL BLOCK")
M +2 -1 src/view/katestatusbar.cpp
https://invent.kde.org/frameworks/ktexteditor/-/commit/37351054fd0e45593282d57674b78445eed34e10
diff --git a/src/view/katestatusbar.cpp b/src/view/katestatusbar.cpp
index e43d4f77a..9b75b99bf 100644
--- a/src/view/katestatusbar.cpp
+++ b/src/view/katestatusbar.cpp
@@ -302,8 +302,9 @@ void KateStatusBar::selectionChanged()
void KateStatusBar::viewModeChanged()
{
// prepend BLOCK for block selection mode
+ // unless on Vi input mode (it is redundant)
QString text = m_view->viewModeHuman();
- if (m_view->blockSelection()) {
+ if (m_view->blockSelection() && m_view->viewInputMode() != KTextEditor::View::ViInputMode) {
text = i18n("[BLOCK] %1", text);
}