Skip to content

Discarding changes on an file open twice in split buffers crashes Femto #11

Description

@hughbarney

Reproducing the following steps produces a segfault

Open a file in Femto-Emacs (e.g. main.c)
Split the buffer with C-x 2, the file should now be open in two buffers
Make a change
Kill the buffer with C-x k and answering y
Move to the other buffer with C-x o
C-x k and answering y produces the segfault.

What is happening is that the code is not checking if any other window has a reference to the buffer that is being killed in the current window. It is probably about a 10 line fix. Will fix in the Femto repository when I get time.

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