Zeus IDE Forum Index Zeus IDE
Use this forum to ask for help, submit a bug report or make a suggestion.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

get_marked_left() does not return 1

 
Post new topic   Reply to topic    Zeus IDE Forum Index -> Reporting a Bug
View previous topic :: View next topic  
Author Message
dmaon



Joined: 29 Nov 2006
Posts: 14

PostPosted: Sun Dec 17, 2006 4:41 pm    Post subject: get_marked_left() does not return 1 Reply with quote

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
Back to top
View user's profile Send private message
jussij
Site Admin


Joined: 13 Aug 2004
Posts: 2187

PostPosted: Sun Dec 17, 2006 10:28 pm    Post subject: Reply with quote

Quote:
Here is the description how to recreate the bug:

Thanks for that. I can now see what you mean Smile

For the mean time I would suggest the following work around:
Code:
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

Quote:
By the way - you did not respond to my folding problem.

This problem was closed just today Wink

See the folding section for the details.

Cheers Jussi
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Zeus IDE Forum Index -> Reporting a Bug All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group