mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-21 21:04:54 +02:00
[BUG_FIXED] Fix the inconsistence of UNDO/REDO block.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@23 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
7175d376d3
commit
66efb809a3
@ -488,29 +488,29 @@ public:
|
||||
|
||||
|
||||
void currentLineUp() const {
|
||||
execute(SCI_BEGINUNDOACTION);
|
||||
|
||||
int currentLine = getCurrentLineNumber();
|
||||
if (currentLine == 0)
|
||||
return;
|
||||
if (currentLine != 0)
|
||||
{
|
||||
execute(SCI_BEGINUNDOACTION);
|
||||
currentLine--;
|
||||
execute(SCI_LINETRANSPOSE);
|
||||
execute(SCI_GOTOLINE, currentLine);
|
||||
|
||||
execute(SCI_ENDUNDOACTION);
|
||||
}
|
||||
};
|
||||
|
||||
void currentLineDown() const {
|
||||
execute(SCI_BEGINUNDOACTION);
|
||||
|
||||
|
||||
int currentLine = getCurrentLineNumber();
|
||||
if (currentLine == (execute(SCI_GETLINECOUNT) - 1))
|
||||
return;
|
||||
if (currentLine != (execute(SCI_GETLINECOUNT) - 1))
|
||||
{
|
||||
execute(SCI_BEGINUNDOACTION);
|
||||
currentLine++;
|
||||
execute(SCI_GOTOLINE, currentLine);
|
||||
execute(SCI_LINETRANSPOSE);
|
||||
|
||||
execute(SCI_ENDUNDOACTION);
|
||||
}
|
||||
};
|
||||
|
||||
void convertSelectedTextTo(bool Case);
|
||||
|
@ -573,11 +573,11 @@
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\src\resource.h"
|
||||
RelativePath="..\src\ScitillaComponent\resource.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\src\ScitillaComponent\resource.h"
|
||||
RelativePath="..\src\resource.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
|
Loading…
x
Reference in New Issue
Block a user