mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-20 20:34:41 +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 {
|
void currentLineUp() const {
|
||||||
execute(SCI_BEGINUNDOACTION);
|
|
||||||
|
|
||||||
int currentLine = getCurrentLineNumber();
|
int currentLine = getCurrentLineNumber();
|
||||||
if (currentLine == 0)
|
if (currentLine != 0)
|
||||||
return;
|
{
|
||||||
currentLine--;
|
execute(SCI_BEGINUNDOACTION);
|
||||||
execute(SCI_LINETRANSPOSE);
|
currentLine--;
|
||||||
execute(SCI_GOTOLINE, currentLine);
|
execute(SCI_LINETRANSPOSE);
|
||||||
|
execute(SCI_GOTOLINE, currentLine);
|
||||||
execute(SCI_ENDUNDOACTION);
|
execute(SCI_ENDUNDOACTION);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
void currentLineDown() const {
|
void currentLineDown() const {
|
||||||
execute(SCI_BEGINUNDOACTION);
|
|
||||||
|
|
||||||
int currentLine = getCurrentLineNumber();
|
int currentLine = getCurrentLineNumber();
|
||||||
if (currentLine == (execute(SCI_GETLINECOUNT) - 1))
|
if (currentLine != (execute(SCI_GETLINECOUNT) - 1))
|
||||||
return;
|
{
|
||||||
currentLine++;
|
execute(SCI_BEGINUNDOACTION);
|
||||||
execute(SCI_GOTOLINE, currentLine);
|
currentLine++;
|
||||||
execute(SCI_LINETRANSPOSE);
|
execute(SCI_GOTOLINE, currentLine);
|
||||||
|
execute(SCI_LINETRANSPOSE);
|
||||||
execute(SCI_ENDUNDOACTION);
|
execute(SCI_ENDUNDOACTION);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
void convertSelectedTextTo(bool Case);
|
void convertSelectedTextTo(bool Case);
|
||||||
|
@ -573,11 +573,11 @@
|
|||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\resource.h"
|
RelativePath="..\src\ScitillaComponent\resource.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\ScitillaComponent\resource.h"
|
RelativePath="..\src\resource.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
|
Loading…
x
Reference in New Issue
Block a user