Skip to content

Prevent format on buffer with pending changes / unsaved buffer / modified buffer #340

Description

@ecerulm

If you have a buffer with changes, and you haven't saved them yet and perform a ':Format' or ':FormatWrite' the formatting is applied to the file contents not the buffer contents so you will lose your changes.

:Format should refuse (by default) to run if the buffer has the 'modified' flag , to prevent data loss.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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