mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
ide: Another Alt+C fix
This commit is contained in:
parent
513157e2bd
commit
08953644b2
1 changed files with 6 additions and 1 deletions
|
|
@ -52,7 +52,12 @@ void AssistEditor::DCopy()
|
|||
String text;
|
||||
for(int i = m.pos.y; i < GetLineCount(); i++) {
|
||||
String l = GetUtf8Line(i);
|
||||
int q = min(l.ReverseFind(';'), l.ReverseFind('{'));
|
||||
int q = l.ReverseFind(';');
|
||||
int w = l.ReverseFind('{');
|
||||
if(q >= 0 && w >= 0)
|
||||
q = min(q, w);
|
||||
else
|
||||
q = max(q, w);
|
||||
if(q >= 0)
|
||||
l.Trim(q);
|
||||
text << l << ' ';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue