Armel Asselin:
> Should "ShowAll" set linesInDisplay == linesInDoc when wrapping is
> disabled?
> Or is there a way to invalidate the linesInDisplay count?
after thinking about that a bit, yes it should : if there is no line
array,
there should be identity between these two quantities and ShowAll does
not
do that. I did the fix here and it works as expected.
OK, you just added a bool wrapping parameter to ShowAll and set
linesInDisplay = linesInDoc if false?
in fact because of the aforementioned note, I added no boolean at all and
just put
linesInDisplay = linesInDoc in ShowAll( ), it works for me but I cannot tell
if it will really work for other, I do not yet use folding.
on the other hand one thing is sure: if no wrapping and no folding occurs,
the equality holds. If any wrapping or folding happens, the internal array
will be invalidated and as such the above line has no impact... so it should
be OK.
Regards
Armel
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest