Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
bd7134a6
Commit
bd7134a6
authored
Jul 10, 2021
by
Martin Tobias Holmedahl Sandsmark
Committed by
Tomaz Canabrava
Jul 16, 2021
Browse files
When selecting select highlighted case if available (e. g. URLs)
parent
1946d32d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/terminalDisplay/TerminalDisplay.cpp
View file @
bd7134a6
...
...
@@ -1795,6 +1795,12 @@ QPoint TerminalDisplay::findLineEnd(const QPoint &pnt)
QPoint
TerminalDisplay
::
findWordStart
(
const
QPoint
&
pnt
)
{
// Don't ask me why x and y are switched ¯\_(ツ)_/¯
QSharedPointer
<
HotSpot
>
hotspot
=
_filterChain
->
hotSpotAt
(
pnt
.
y
(),
pnt
.
x
());
if
(
hotspot
)
{
return
QPoint
(
hotspot
->
startColumn
(),
hotspot
->
startLine
());
}
const
int
regSize
=
qMax
(
_screenWindow
->
windowLines
(),
10
);
const
int
firstVisibleLine
=
_screenWindow
->
currentLine
();
...
...
@@ -1867,6 +1873,11 @@ out:
QPoint
TerminalDisplay
::
findWordEnd
(
const
QPoint
&
pnt
)
{
QSharedPointer
<
HotSpot
>
hotspot
=
_filterChain
->
hotSpotAt
(
pnt
.
y
(),
pnt
.
x
());
if
(
hotspot
)
{
return
QPoint
(
hotspot
->
endColumn
(),
hotspot
->
endLine
());
}
const
int
regSize
=
qMax
(
_screenWindow
->
windowLines
(),
10
);
const
int
curLine
=
_screenWindow
->
currentLine
();
int
i
=
pnt
.
y
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment