Simplify and improve qe_check_buffer_file
* pass `QEmacsState` to key grab functions * clear `grab_key_opaque` when freeing windows, buffers, mode_data * add checks on window and buffer pointers in key grab functions * this should fix a crash bug when deleting unsynched buffers from bufed * fix `reload_buffer` to update buffer `file_size` and `mtime` fields * check buffer file before invoking commands that modify the buffer * check buffer file after command that changes the current window or the current window's buffer
This commit is contained in:
parent
eda70b4576
commit
6fb16e1cc2
8 changed files with 88 additions and 71 deletions
|
|
@ -309,7 +309,6 @@ static void bufed_select(EditState *s, int temp)
|
|||
do_delete_window(s, 1);
|
||||
if (e) {
|
||||
qs->active_window = e;
|
||||
qe_check_buffer_file(e->b, CBF_CHECK);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue