NO

Author Topic: POIDE save current file when using structure  (Read 3296 times)

skirby

  • Guest
POIDE save current file when using structure
« on: April 15, 2007, 05:31:45 PM »
Hello Pelle,

There is a small bug when I use structure.
In this small example, simply type x and when you type the dot . POIDE save modifications in my file  :o (the star near the filename in tab disappeared)
Is it normal?

There is the same behavior when I type ->
My current file is automatically saved.

Code: [Select]
struct {
  int c;
  char s;
} x, *y;

int main(void) {
  x.c = 0;
  x.s = 'C';

  y->c = 0;

  return 0;
}

Can you reproduce this behavior?
If it is a bug, could you correct it in the next release ?

Thanks and have a nice day.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: POIDE save current file when using structure
« Reply #1 on: April 16, 2007, 05:47:27 PM »
Perfectly normal behaviour if option 'Save files without prompting before build' is checked...
/Pelle

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: POIDE save current file when using structure
« Reply #2 on: April 16, 2007, 05:59:01 PM »
Pelle,
I was considering that he have not build yet the project when you save the file.
In this case if the text wrote is not correct, or if he changes his mind in the while, the original file is overwritten anyway, and unless the undo permits to go back to the origin you have lost the previous version.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

skirby

  • Guest
Re: POIDE save current file when using structure
« Reply #3 on: April 16, 2007, 11:56:55 PM »
I also agree with frankie.

I haven't built my project.
More, I don't want to save my files but I just want to see structure variables.