I found a problem with my SlideIn/Out scripts that also appears to affect Add/Remove Comments. comment_range() appears to work on display line, not file line:
For example, if I have
Code: Select all
public class Bob
{
    bool SomeFunction()
    {
        return(true);
    }
    bool AnotherFunction()
    {
        return(true);
    }
}
Code: Select all
public class Bob
{
    bool SomeFunction()
    { ... }
    bool AnotherFunction()
    {
        return(true);
    }
}
Code: Select all
public class Bob
{
    bool SomeFunction()
    {
        return(true);
    // }
    // 
    // bool AnotherFunction()
    // {
        return(true);
    }
}
Code: Select all
function key_macro()
    message
    (
        string.format
        (
            "Selected range [%d:%d]. Current line: %d",
            get_marked_top(),
            get_marked_bottom(),
            get_line_pos()
        )
    );
end
key_macro() -- run the macro
I've run out of time to look at this today, but thought I'd post here in case you have an immediate idea where the problem is.
Thanks!
