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
e31d729c
Commit
e31d729c
authored
Jul 16, 2021
by
Waqar Ahmed
Browse files
LocHistory: When limiting size, also rewind currentLocation
parent
615c62a7
Pipeline
#70604
passed with stage
in 5 minutes and 56 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
kate/kateviewspace.cpp
View file @
e31d729c
...
...
@@ -539,8 +539,10 @@ void KateViewSpace::addPositionToHistory(const QUrl &url, KTextEditor::Cursor c,
}
// limit size to 50, remove first 10
if
(
m_locations
.
size
()
>=
50
)
{
m_locations
.
erase
(
m_locations
.
begin
(),
m_locations
.
begin
()
+
10
);
int
toErase
=
(
int
)
m_locations
.
size
()
-
50
;
if
(
toErase
>
0
)
{
m_locations
.
erase
(
m_locations
.
begin
(),
m_locations
.
begin
()
+
toErase
);
currentLocation
-=
toErase
;
}
}
int
KateViewSpace
::
hiddenDocuments
()
const
...
...
Waqar Ahmed
@waqar
mentioned in commit
0919ddef
·
Jul 17, 2021
mentioned in commit
0919ddef
mentioned in commit 0919ddefab783346780a346b37dffc2bb454d967
Toggle commit list
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