Author Topic: Astyle or C::B bug ??  (Read 3640 times)

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Astyle or C::B bug ??
« 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

Offline joubertdj

  • Multiple posting newcomer
  • *
  • Posts: 120
Re: Astyle or C::B bug ??
« Reply #1 on: February 01, 2007, 01:19:02 pm »
 ... sorry ... I am not sure I understand completely... shouldn't it be "unchangeable" hence... Read Only...?

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: Astyle or C::B bug ??
« Reply #2 on: February 01, 2007, 03:34:25 pm »
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 ?

Offline joubertdj

  • Multiple posting newcomer
  • *
  • Posts: 120
Re: Astyle or C::B bug ??
« Reply #3 on: February 01, 2007, 03:56:00 pm »
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