get_marked_left() does not return 1

If reporting a bug with the Zeus IDE please post the details here. Please do not post questions here.
Post Reply
dmaon
Posts: 14
Joined: Wed Nov 29, 2006 2:17 pm

get_marked_left() does not return 1

Post by dmaon »

Hi Jussi,

Here is the description how to recreate the bug:

1) Move the cursor to a column that is not the first one on the line
2) Press alt-L to mark the line
3) Press the down arrow to mark a second line and stay in the same column in the line that is not the first column
4) Press a key that activates a macro that tells you the value returned by get_marked_left(). You will get the column number where the cursor is standing and not 1

I am sure that I am working with the lates version as we bought our copies just a week ago and downloaded the latest version.

By the way - you did not respond to my folding problem. Did you get it and understood it?

David
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Here is the description how to recreate the bug:
Thanks for that. I can now see what you mean :)

For the mean time I would suggest the following work around:

Code: Select all

function my_get_marked_left()
    left = get_marked_left()

    -- check for the Zeus line marking bug
    if (is_marked() == 1 and get_marked_mode() == 1) then
        left = 1
    end

    return left
end

function key_macro()
    screen_update_disable()
    message("Zeus left is: " .. get_marked_left() .. " my left is:" .. my_get_marked_left())
    screen_update_enable()
    screen_update()
end

key_macro() -- run the macro
By the way - you did not respond to my folding problem.

This problem was closed just today ;)

See the folding section for the details.

Cheers Jussi
Post Reply