[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;
|
||||
currentLine--;
|
||||
execute(SCI_LINETRANSPOSE);
|
||||
execute(SCI_GOTOLINE, currentLine);
|
||||
|
||||
execute(SCI_ENDUNDOACTION);
|
||||
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;
|
||||
currentLine++;
|
||||
execute(SCI_GOTOLINE, currentLine);
|
||||
execute(SCI_LINETRANSPOSE);
|
||||
|
||||
execute(SCI_ENDUNDOACTION);
|
||||
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…
Reference in New Issue