Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
40af3e04
Commit
40af3e04
authored
Jan 05, 2015
by
Maxime Perrotin
Browse files
Fix Copy paste issue when selecting multiple symbols
parent
4daf26dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
opengeode/Clipboard.py
View file @
40af3e04
...
...
@@ -82,7 +82,9 @@ def copy_branch(top_level_item):
if
not
isinstance
(
top_level_item
,
genericSymbols
.
HorizontalSymbol
):
next_aligned
=
top_level_item
.
next_aligned_symbol
()
while
next_aligned
and
next_aligned
.
grabber
.
isSelected
():
next_ast
,
next_terminators
=
next_aligned
.
get_ast
()
pr_text
=
'
\n
'
.
join
(
Pr
.
generate
(
next_aligned
,
cpy
=
True
,
nextstate
=
False
,
recursive
=
True
))
next_ast
,
next_terminators
=
next_aligned
.
get_ast
(
pr_text
)
terminators
.
extend
(
next_terminators
)
branch
.
append
(
next_ast
)
next_aligned
=
next_aligned
.
next_aligned_symbol
()
...
...
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