GramEditor/gram
37
982
Fork
You've already forked gram
88

Unnamed buffers with unsaved changes sometimes block window from closing or are lost completely #352

Open
opened 2026年06月23日 14:27:57 +02:00 by sylfn · 1 comment

I sometimes use unnamed buffers for to-do lists and as a persistent clipboard. These buffers work well when the window that hosts them has folders opened in it: the buffers are autosaved, are restored after a crash (simulated with pkill -15 gram) and restored after a normal quit action (Ctrl+Q).

If the window in question has a file with saved changes opened (but still no folder), then that window would be completely lost after Ctrl+Q with unsaved changes.

This does not happen if the window has at least one folder opened. In that case, unnamed buffers are preserved and restored correctly.

Gram window with no folder opened that has an unnamed buffer with unsaved changes. A popup prompts to save the buffer or dismiss the action

system information

Gram: v2.1.2 (Gram)
Memory: 60.7 GiB
Architecture: x86_64
GPU: AMD Radeon Graphics (RADV RENOIR) || radv || Mesa 26.1.2

Installed from nixpkgs on NixOS 26.11pre1011622.a799d3e3886d (Zokor). I use GNOME on Wayland (mutter 50.1, gnome-shell 50.1)

I sometimes use unnamed buffers for to-do lists and as a persistent clipboard. These buffers work well when the window that hosts them has folders opened in it: the buffers are autosaved, are restored after a crash (simulated with `pkill -15 gram`) and restored after a normal quit action (Ctrl+Q). If the window in question has a file with saved changes opened (but still no folder), then that window would be completely lost after Ctrl+Q with unsaved changes. This does not happen if the window has at least one folder opened. In that case, unnamed buffers are preserved and restored correctly. ![Gram window with no folder opened that has an unnamed buffer with unsaved changes. A popup prompts to save the buffer or dismiss the action](/attachments/4fb79c46-119f-488e-b8ca-9934ff073bec) ## system information Gram: v2.1.2 (Gram) Memory: 60.7 GiB Architecture: x86_64 GPU: AMD Radeon Graphics (RADV RENOIR) || radv || Mesa 26.1.2 Installed from nixpkgs on NixOS 26.11pre1011622.a799d3e3886d (Zokor). I use GNOME on Wayland (mutter 50.1, gnome-shell 50.1) <!-- Wiki: https://codeberg.org/GramEditor/gram/wiki/Feature-Requests Docs: https://gram-editor.com/docs/ Chat: https://slidge.im/gram/#/guest?join=gram@rooms.slidge.im This issue tracker is mainly for tracking and dealing with bugs. - If you want to make a feature request or have an idea for improvements, please create a page on the Wiki instead of opening an issue. - If you have a question about how the software works or how to configure it, check the wiki guides or the documentation, or join the chatroom and ask there first. If the question turns out to be a missing feature, create a feature request. If it's a bug, come back and create an issue. If your issue really is a bug that you've found: - Is it caused by hardware, for example missing support for your particular graphics device? If so, you are probably the person best suited to solve the problem since you are the one able to reproduce it. Start by trying to work out as much about the cause of the issue yourself, and include as much detail as you can in the issue. See the guide to debugging crashes in the documentation for more information on retrieving logs or using a debugger with Gram. - Is it a packaging problem, like missing builds for Windows, missing packages for your architecture or support needed for a particular Linux distribution? Just like in the previous case, you are probably the one most able to fix the problem yourself. There is a mirror of the repository on Github only so that we can run Github Actions on platforms that we don't have runners for on Codeberg. Contributions to improve the workflows for both Forgejo and Github are welcome. For any other issues, try to investigate the problem before creating an issue. This is a code editor, you as a user of this editor is presumably a coder. Don't let your preconceived notions about what you are capable of limit you in familiarising yourself with your tools. Everyone benefits if you become able to resolve the issues you encounter yourself. Thank you <3 / one grumpy toad with limited time on this earth -->
Owner
Copy link

Yeah this one is really annoying..

Yeah this one is really annoying..
Sign in to join this conversation.
main
main
test/wgpu-on-mac
test-ci/failing-test-mac
test/failing-test-mac
test/build-on-22-04
test/wgpu-present-mode-mailbox
v2.1
test/altgr-fix-again
test/2.0.0-rc1
test/linux-build
test/objc2
v1.2.1
3.0.1
3.0.0
2.2.0
2.1.2
2.1.1
2.1.0
2.0.0
1.2.1
1.2.0
1.1.0
1.0.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
GramEditor/gram#352
Reference in a new issue
GramEditor/gram
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?