A cut line of code still executed

I cut out a line of code by
1)left clicking my mouse,
2)dragging my cursor over the line of code I wished to cut.
3)this action 2) highlighted the code.
4)I then right clicked my mouse which cut out the code and thus the code was no longer visible on my browser (Windows 7).

However the code was still in the program and was executed.

Thank you

Discoverer:
I cut out a line of code by
1)left clicking my mouse,
2)dragging my cursor over the line of code I wished to cut.
3)this action 2) highlighted the code.
4)I then right clicked my mouse which cut out the code and thus the code was no longer visible on my browser (Windows 7).

However the code was still in the program and was executed.

Thank you

You're wellcome.

I confirm the problem. There is a missing step in Discoverer's report which is fairly obvious but should still be stated to avoid confusion:

  • Highlight some code in the Arduino Web Editor.
  • Right click on the highlighted code.
  • Click "Cut". The selected code is deleted.
  • Compile the code, the cut line is still compiled.

The same does not occur if you use the Ctrl + X keyboard shortcut.

Thanks for reporting this Discoverer!

Hello,

it is not clear when the "save" happens. Did you enable autosave or not? In the latter case we still compile the last saved version so the behaviour is expected.

This issue should be fixed! thanks for your report