cs136 / seashell

Seashell is an online environment for editing, running, and submitting C programming assignments.
GNU General Public License v3.0
38 stars 19 forks source link

SEASHELL_READONLY flag does not prevent pasting #890

Open RuyiLi opened 3 years ago

RuyiLi commented 3 years ago

Pasting text (through CTRL+V or RMB+Paste) in a file marked with the comment // SEASHELL_READONLY will allow the change to go through. In the attached image, the following snippet was added to a "read-only" file:

#include <stdbool.h>

// SEASHELL_READONLY
// SEASHELL_READONLY
// For all of these functions:
//   * you cannot mutate any

image