Re: [wxlua-users] GetLineVisible always returns true?

2013-02-25 Thread John Labenski
On Mon, Feb 25, 2013 at 1:30 PM, Paul K paulclin...@yahoo.com wrote: In the best tradition of self-answering, it turned out that GetLineVisible doesn't do what I need: it only checks against whether the line is hidden because of folding (not if it's outside of the visible area, which is what

Re: [wxlua-users] GetLineVisible always returns true?

2013-02-25 Thread Paul K
Hi John, This is how I do it in stedit.cpp in the modules/wxstedit/src dir. Should have checked there; I came up with very similar code, but also included DocLineFromVisible: function isLineVisible(line) local firstline = editor:DocLineFromVisible(editor:GetFirstVisibleLine()) local