Skip to content

Scrolling when cursor is on the first line #5

@jtxx000

Description

@jtxx000

When the cursor is on the first line in the main buffer and scrolloff=0, opening fzf causes the main buffer to scroll down by a single line.

I believe the problem is the line

execute 'normal! '.(topWinLine + &scrolloff - 1).'jzt'

which evaluates to 0j, which (counter-intuitively) seems to be equivalent to 1j.

Thanks for the awesome plugin!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions