do not allow switching tabs if some editing operation ongoing to avoid incosistent states

This commit is contained in:
Stefan Frederik 2022-04-23 13:43:12 +02:00
parent eb6eeebe7f
commit d57f8e60ee
1 changed files with 1 additions and 0 deletions

View File

@ -1043,6 +1043,7 @@ static void switch_tab(int *window_count, const char *win_path)
{
int i, n;
if(xctx->semaphore) return; /* some editing operation ongoing. do nothing */
if(!strcmp(win_path, xctx->current_win_path)) return; /* already there */
if(*window_count) {
dbg(1, "new_schematic() switch_tab: %s\n", win_path);