bool is_editmode
int editmode
Replace `int editmode` with `const bool is_editmode`. No functional changes.