refactor: remove all mentions to curbuf_lock

This commit is contained in:
Thomas Vigouroux
2021-07-08 07:51:41 +02:00
parent f8ed13c0dc
commit b35fefc57f
5 changed files with 18 additions and 15 deletions

View File

@@ -2412,8 +2412,8 @@ char_u * get_text_locked_msg(void) {
}
}
/// Check if "curbuf_lock" or "allbuf_lock" is set and return TRUE when it is
/// and give an error message.
/// Check if "curbuf->b_ro_locked" or "allbuf_lock" is set and
/// return TRUE when it is and give an error message.
int curbuf_locked(void)
{
if (curbuf->b_ro_locked > 0) {