GNOME Bugzilla – Bug 441287
Glitch in the Snippets plugin when closing files
Last modified: 2019-03-23 20:47:31 UTC
The bug has been opened on https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/116749 "Binary package hint: gedit The "Snippets" plugin stops working after opening and closing a file. Background: Using Ubuntu Fiesty with Gnome v. 2.18.1 and gedit Steps to Reproduce: 1. Create two UTF-8 text files (text1 and text2) 2. Open file1 3. I was working with custom snippets, although the issue appears to extend to preformatted snippets as well. So, create a custom snippet and give it a tab command (I didn't use the hotkeys, but the problem can be reproduced with those, too). 4. Add some text and use the tab (or hotkey) cues to enter your snippet. 5. Open file2 (Either visually from Nautilus or from the "Open" menu item) 6. Close file2 (I used the "x") 7. Now try to enter your same snippets in file1 using the same commands. You should find that they are no longer triggering the Snippet plugin. 8. If you close gedit and open it again, the snippets should work again. Please contact me if any further details are needed. ..."
Thanks for reporting this bug! The problem was that the global snippets library was always unreffed when a tab was closed, but it wasn't properly reffed when the tab opened! This has been fixed in the current development.