mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
ide: duplicate line
git-svn-id: svn://ultimatepp.org/upp/trunk@7709 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
63561ad66b
commit
5923eb1344
5 changed files with 14 additions and 0 deletions
|
|
@ -191,6 +191,15 @@ void CodeEditor::CopyWord() {
|
|||
}
|
||||
}
|
||||
|
||||
void CodeEditor::DuplicateLine()
|
||||
{
|
||||
int p = GetCursor();
|
||||
int i = GetLine(cursor);
|
||||
int pos = GetPos(i);
|
||||
int len = GetLineLength(i);
|
||||
Insert(pos + len, "\n" + GetW(pos, len));
|
||||
}
|
||||
|
||||
void CodeEditor::SwapChars() {
|
||||
if(IsReadOnly()) return;
|
||||
int i = GetLine(cursor);
|
||||
|
|
|
|||
|
|
@ -376,6 +376,7 @@ public:
|
|||
|
||||
void CopyWord();
|
||||
void SwapChars();
|
||||
void DuplicateLine();
|
||||
|
||||
void SerializeFind(Stream& s);
|
||||
bool IsFindOpen() const { return findreplace.IsOpen(); }
|
||||
|
|
|
|||
Loading…
Reference in a new issue