Skip to content

Only reflow to the top of the viewport #1869

@Tyriar

Description

@Tyriar

This is a follow up for reflow #1864

The idea is to instead of reflowing the whole buffer every time resize is called, to reflow only up to the top of the viewport and keep track of where the reflow has occurred up to with the Buffer's state.

Something to consider here is what happens with things like the search addon which need to search the whole buffer. Perhaps search should trigger a full reflow before hand or any call to BufferLine.translateToString should ensure that up to that line has been reflowed?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions