View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001898 | Far Manager | Macro | public | 2011-09-29 21:39 | 2011-10-03 08:49 |
Reporter | Maximus | Assigned To | vskirdin | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | 3.0 | ||||
Fixed in Version | 3.0 | ||||
Summary | 0001898: Глюки отрисовки редактора после выполнения макросов | ||||
Description | 1. Если выполнить макрос "editor.set(20,1-editor.set(20,-1))" (например) при "DisableOutput=0" - редактор не перерисовывается. После чего начинаются забавные глюки при движении курсора. 2. Не очень понятен смысл переменной IsRedrawEditor. При старте она содержит мусор, вряд ли так было задумано. 3. SetRedrawEditor вообще нигде не используется | ||||
Tags | No tags attached. | ||||
Build | 2207 | ||||
|
Macro.110929.diff (1,341 bytes)
Index: macro.cpp =================================================================== --- macro.cpp (revision 6738) +++ macro.cpp (working copy) @@ -554,7 +554,8 @@ RecBufferSize(0), RecBuffer(nullptr), RecSrc(nullptr), - LockScr(nullptr) + LockScr(nullptr), + IsRedrawEditor(TRUE) { Work.Init(nullptr); ClearArray(IndexMode); @@ -3475,6 +3476,8 @@ CtrlObject->Plugins.CurEditor->SetEditorOptions(EdOpt); CtrlObject->Plugins.CurEditor->ShowStatus(); + if (Index == 0 || Index == 12 || Index == 15 || Index == 20) + CtrlObject->Plugins.CurEditor->Show(); } } @@ -4791,7 +4794,7 @@ /*$ 10.08.2000 skv If we are in editor mode, and CurEditor defined, we need to call this events. - EE_REDRAW 2 - to notify that text changed. + EE_REDRAW 1 - to notify that text changed. EE_REDRAW 0 - to notify that whole screen updated ->Show() to actually update screen. Index: macro.hpp =================================================================== --- macro.hpp (revision 6738) +++ macro.hpp (working copy) @@ -309,7 +309,7 @@ bool GetPlainText(string& Dest); int GetPlainTextSize(); - void SetRedrawEditor(int Sets) {IsRedrawEditor=Sets;} + //void SetRedrawEditor(int Sets) {IsRedrawEditor=Sets;} void RestartAutoMacro(int Mode); |
|
build 2207 |
Date Modified | Username | Field | Change |
---|---|---|---|
2011-09-29 21:39 | Maximus | New Issue | |
2011-09-29 21:39 | Maximus | File Added: Macro.110929.diff | |
2011-09-30 12:11 | vskirdin | Note Added: 0007777 | |
2011-09-30 12:11 | vskirdin | Assigned To | => vskirdin |
2011-09-30 12:11 | vskirdin | Status | new => feedback |
2011-10-03 07:54 | Maximus | Status | feedback => resolved |
2011-10-03 08:49 | vskirdin | Build | => 2207 |
2011-10-03 08:49 | vskirdin | Status | resolved => closed |
2011-10-03 08:49 | vskirdin | Resolution | open => fixed |
2011-10-03 08:49 | vskirdin | Fixed in Version | => 3.0 |