Fix find first result centering

* Adds Editor.isLineVisible() API
* Fixes issue #3400