Skip to content
GitLab
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
69713dca
Commit
69713dca
authored
Jan 08, 2022
by
Christoph Cullmann
🍨
Browse files
ensure some non-null view size, fixes tests on wayland
parent
7b27c60d
Pipeline
#120832
failed with stage
in 3 minutes and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
kate/autotests/location_history_test.cpp
View file @
69713dca
...
...
@@ -229,7 +229,9 @@ void LocationHistoryTest::test_addOnlyIfViewLineCountAwayFromCurrentPos()
// Changing cursor position will only be added to location
// history if view line count away
// ensure the view has some non-null size
auto
view
=
vm
->
activeView
();
view
->
resize
(
600
,
600
);
int
vlc
=
viewLineCount
(
view
);
view
->
setCursorPosition
({
2
*
vlc
,
0
});
QCOMPARE
(
vs
->
locationHistoryBuffer
().
size
(),
2
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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