Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
55396d6e
Unverified
Commit
55396d6e
authored
Mar 01, 2020
by
Rémi Verschelde
Committed by
GitHub
Mar 01, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #36621 from WizardOhio24/fix-wrong-selection-on-line-clone-down
Fix wrong selection on cloning a line down in the editor
parents
0e25f547
28f74327
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
code_editor.cpp
editor/code_editor.cpp
+1
-1
No files found.
editor/code_editor.cpp
View file @
55396d6e
...
...
@@ -1257,7 +1257,7 @@ void CodeTextEditor::clone_lines_down() {
text_editor
->
cursor_set_line
(
cursor_new_line
);
text_editor
->
cursor_set_column
(
cursor_new_column
);
if
(
selection_active
)
{
text_editor
->
select
(
to_line
,
to_column
,
2
*
to_line
-
from_line
,
2
*
to_column
-
from
_column
);
text_editor
->
select
(
to_line
,
to_column
,
2
*
to_line
-
from_line
,
to_line
==
from_line
?
2
*
to_column
-
from_column
:
to
_column
);
}
text_editor
->
end_complex_operation
();
...
...
Write
Preview
Markdown
is supported
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