After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 417825 - Revert don't work when reloading empty files
Revert don't work when reloading empty files
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
2.16.x
Other All
: Normal minor
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2007-03-13 11:56 UTC by Inconexo
Modified: 2007-03-13 18:06 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
patch (1.05 KB, patch)
2007-03-13 15:32 UTC, Paolo Borelli
committed Details | Review

Description Inconexo 2007-03-13 11:56:18 UTC
Please describe the problem:
When I have a file opened, and try to revert the local content onto the editor, if the local file is now empty, revert seems to reload, but shows the old content of the file.

Steps to reproduce:
1. Open any text file no empty.
2. Substitute that file with an empty one.
3. Choose the Revert action at File menu


Actual results:
It seems to reload, but shows old content of the file.

Expected results:
To show an empty file.

Does this happen every time?
Sure.

Other information:
Comment 1 Paolo Borelli 2007-03-13 15:32:25 UTC
Created attachment 84507 [details] [review]
patch

Nice catch! We need to clear the buffer when loading an empty doc.

This patch fixes the issue
Comment 2 Inconexo 2007-03-13 17:12:25 UTC
Amazingly fast!

I think the bug was still there because it was a rare situation.

Thank you very much.
Comment 3 Paolo Borelli 2007-03-13 18:06:09 UTC
patch peer reviewed by Jesse and committed.

This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.