Summary: | Kate flashes highlighting from document start after double click. | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Tim Hutt <tdhutt> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Tim Hutt
2006-07-25 22:30:25 UTC
And further investigation (by moving the mouse slowly) reveals that the flashes aren't "as quick as possible" flashes, but are due to it highlighting the stuff only when the mouse is in a really narrow (probably 1 px) area between the lines of text. SVN commit 566355 by kling: Don't enter "word selection mode" without an actual selection. BUG: 131369 M +5 -0 kateviewinternal.cpp --- branches/KDE/3.5/kdelibs/kate/part/kateviewinternal.cpp #566354:566355 @@ -2744,6 +2744,11 @@ selectAnchor = KateTextCursor (m_view->selEndLine(), m_view->selEndCol()); selStartCached = m_view->selectStart; selEndCached = m_view->selectEnd; + + // if we didn't actually select anything, restore the selection mode + // -- see bug #131369 (kling) + if (!m_view->hasSelection()) + m_selectionMode = Default; } // Move cursor to end of selected word Wow! Quick. Thanks! SVN commit 570416 by kling: Forward-port of SVN commit 566355 by kling: Don't enter "word selection mode" without an actual selection. CCBUG: 131369 M +5 -0 kateviewinternal.cpp --- trunk/KDE/kdelibs/kate/part/kateviewinternal.cpp #570415:570416 @@ -2400,6 +2400,11 @@ m_view->selectWord( m_cursor ); m_selectAnchor = m_view->selectionRange().end(); m_selectionCached = m_view->selectionRange(); + + // if we didn't actually select anything, restore the selection mode + // -- see bug #131369 (kling) + if (!m_view->selection()) + m_selectionMode = Default; } // Move cursor to end of selected word |