Page 1 of 1

Problem with Find and scrolling

Posted: Wed Nov 12, 2008 1:43 pm
by pwdiener
Jussi,

Using the Find dialog box to find strings, when the match is found on the currently displayed "page", everything works fine. However, when the text needs to scroll, it scrolls too far and scrolls the text found off the top of the screen. For example, I find text at line 26631. The find dialog is still up, so I press Enter (or click Find) and find the text at line 26651 on the same page. Pressing Enter again scroll line 26999 to the top of the display, with no text highlighted. Pressing ESC scrolls back to line 26848, with the text highlighted.

Using F3 to repeat the find works correctly.

Bill Diener

Posted: Wed Nov 12, 2008 2:06 pm
by pwdiener
Jussi,

This appears to happening only on listing files, not source files. Other than line length and trailing spaces, I'm not sure I see the difference between these, but I definitely observe the different behavior. Both files are CRLF terminated.

This is 3.96r.

Bill

Posted: Wed Nov 12, 2008 10:43 pm
by jussij
Could you post a couple of lines from the listing file and an example of the text that you are searching for.

With those details I will try to replicate the bug at this end ;)

Cheers Jussi

Posted: Thu Nov 13, 2008 11:38 pm
by jussij
Ok, I have managed to replicate the bug.

The problem relates to the fact that Windows limits the scroller bar to having only 65536 scroll points.

So naturally a file with more than this number of lines does not fit into the scroller.

To get around this Windows limitation, when a large file is loaded into Zeus, one scroll point can be equal to more than one line of text.

The bug you have found relates to the fact that the searching code assumes each line of code has one scroll point in the scroller.

Cheers Jussi

Posted: Mon Feb 16, 2009 11:17 pm
by jussij
This unwanted behaviour should be improved in the latest patch found here: http://www.zeusedit.com/forum/viewforum.php?f=6

Cheers Jussi