GNOME Bugzilla – Bug 417825
Revert don't work when reloading empty files
Last modified: 2007-03-13 18:06:09 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:
Created attachment 84507 [details] [review] patch Nice catch! We need to clear the buffer when loading an empty doc. This patch fixes the issue
Amazingly fast! I think the bug was still there because it was a rare situation. Thank you very much.
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.