Hi Jussij
I am using version 3.95z. If I have a function window open ( created by pressing the tool bar icon {} ), and then I press the home key in ANY window, the function window is cleared of everything except the copyright header added by Zeus. My home key is mapped to the following macro.
Thanks,
Jack
function key_macro()
screen_update_disable()
local cursor_after_move = 1
local start_cursor = get_cursor_pos()
if ( start_cursor ~= 1) then
MoveLineHome()
MoveWordNext()
cursor_after_move = get_cursor_pos()
end
if (start_cursor == cursor_after_move or start_cursor == 1) then
MoveDocumentStartEx()
end
screen_update_enable()
screen_update()
end
key_macro() -- run the macro
FYI, the goal of this macro is for the 1st time home is press, move the cursor to the 1st character on the line. 2nd press, 1st column, then top of page, last home, top of document.
macro mistakenly clears function window
Hi Jack,

What I did to test for the bug was as follows:
(1) I started the Zeus for Windows Programmers Editor - Version 3.95z.
(2) I took your macro and bound it to the Home key:
(2) I then ran the Function List for the macro itself and I pressed the Home key several times for both windows.
For me all I get is the expected result of the macro moving the cursor with no change at all to the contents of the function list.
(3) I repeated the test for other files with exactly the same results
If you try these exact same steps, do you still see the problem
Cheers Jussi
Unfortunately I could not replicate this bugI am using version 3.95z. If I have a function window open ( created by pressing the tool bar icon {} ), and then I press the home key in ANY window, the function window is cleared of everything except the copyright header added by Zeus.

What I did to test for the bug was as follows:
(1) I started the Zeus for Windows Programmers Editor - Version 3.95z.
(2) I took your macro and bound it to the Home key:
Code: Select all
function key_macro()
screen_update_disable()
local cursor_after_move = 1
local start_cursor = get_cursor_pos()
if ( start_cursor ~= 1) then
MoveLineHome()
MoveWordNext()
cursor_after_move = get_cursor_pos()
end
if (start_cursor == cursor_after_move or start_cursor == 1) then
MoveDocumentStartEx()
end
screen_update_enable()
screen_update()
end
key_macro()
For me all I get is the expected result of the macro moving the cursor with no change at all to the contents of the function list.
(3) I repeated the test for other files with exactly the same results

If you try these exact same steps, do you still see the problem

Cheers Jussi
Hi Jack,
I don't quite understand your reply
If you perform the steps I outlined earlier, do you see the clearing of the function list or does the function list behave as expected
If you do continually see this function list error, what steps do you perform to make the problem occur
As I mentioned earlier, while using the 3.95z version I was not able to replicate the error
Cheers Jussi
I don't quite understand your reply

If you perform the steps I outlined earlier, do you see the clearing of the function list or does the function list behave as expected

If you do continually see this function list error, what steps do you perform to make the problem occur

As I mentioned earlier, while using the 3.95z version I was not able to replicate the error

Cheers Jussi
Hi Jussij,
Sorry my answer wasn't clear, I'll try again.
If I follow the steps you listed, the problem will occur everytime, extremely repeatable. Every press of the home key clears the function window.
HOWEVER, I then exited Zeus and re-invoked it and now the problem never occurs. Somehow, Zeus got corrupted. Now it's working fine. Zeus was running for a couple days. I've editted many files switching through numerous workspaces. I can't say how to re-create the state I got Zeus in.
Hopefully, this is more clear
Jack
Sorry my answer wasn't clear, I'll try again.
If I follow the steps you listed, the problem will occur everytime, extremely repeatable. Every press of the home key clears the function window.
HOWEVER, I then exited Zeus and re-invoked it and now the problem never occurs. Somehow, Zeus got corrupted. Now it's working fine. Zeus was running for a couple days. I've editted many files switching through numerous workspaces. I can't say how to re-create the state I got Zeus in.
Hopefully, this is more clear
Jack
Hi Jack,
Ok, that makes more sense now. Thanks

Cheers Jussi
Ok, that makes more sense now. Thanks

As you suggest, I agree this was most likely cause by some sort of memory corruption. It might be quite difficult to track down since the corruption could have been caused by anything that happened to Zeus over the last few days since the last time it was startedHOWEVER, I then exited Zeus and re-invoked it and now the problem never occurs.

Cheers Jussi