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
Kate
Commits
e0ec9b33
Commit
e0ec9b33
authored
Jan 11, 2021
by
Waqar Ahmed
Committed by
Christoph Cullmann
Jan 11, 2021
Browse files
Use KTextEditor::Cursor::invalid() for consistency and clarity
parent
d5f1eacb
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientpluginview.cpp
View file @
e0ec9b33
...
...
@@ -1300,7 +1300,7 @@ public:
template
<
typename
Handler
>
using
LocationRequest
=
std
::
function
<
LSPClientServer
::
RequestHandle
(
LSPClientServer
&
,
const
QUrl
&
document
,
const
LSPPosition
&
pos
,
const
QObject
*
context
,
const
Handler
&
h
)
>
;
template
<
typename
Handler
>
void
positionRequest
(
const
LocationRequest
<
Handler
>
&
req
,
const
Handler
&
h
,
QScopedPointer
<
LSPClientRevisionSnapshot
>
*
snapshot
=
nullptr
,
KTextEditor
::
Cursor
cur
=
KTextEditor
::
Cursor
(
-
1
,
-
1
))
template
<
typename
Handler
>
void
positionRequest
(
const
LocationRequest
<
Handler
>
&
req
,
const
Handler
&
h
,
QScopedPointer
<
LSPClientRevisionSnapshot
>
*
snapshot
=
nullptr
,
KTextEditor
::
Cursor
cur
=
KTextEditor
::
Cursor
::
invalid
(
))
{
KTextEditor
::
View
*
activeView
=
m_mainWindow
->
activeView
();
auto
server
=
m_serverManager
->
findServer
(
activeView
);
...
...
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