Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: dje on February 01, 2007, 12:29:58 pm
-
Hi !
When I open a read only file with C::B, I can not modify it at all.
When I use the (wonderful) Astyle plug-in on it, the modification star appears in title bar but it seems that nothing changed in my editor.
Minor bug in fact but bug !
Dje
-
... sorry ... I am not sure I understand completely... shouldn't it be "unchangeable" hence... Read Only...?
-
I guess that the file read only attribute makes impossible any modification on the editor (try to type text or paste content after opening a RO file).
So, the save menu item remains disabled and there is never a star (*) on this editor title bar.
When I execute astyle on this editor (stupid I know, just a dummy test), its status seems to be modified whereas there is no change on the text.
Consequences of this are a star in the title bar and the save menu item enabled (on a read only file that can't be modified).
I think it's wrong because editor content was not modified.
Am I clear ?
-
AAAAAaaaaaahhhhhhh :lol: A bit slow this time of the week... sorry...
Damn nice catch of a bug man... I think there needs a If statement to check if the file was a read only file... Hmmm