comparison src/ex_docmd.c @ 20097:165ec447ca77 v8.2.0604

patch 8.2.0604: :startinsert in a terminal window used later Commit: https://github.com/vim/vim/commit/eb58a2465825c258beafae96240824923f73779f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 19 18:13:19 2020 +0200 patch 8.2.0604: :startinsert in a terminal window used later Problem: :startinsert in a terminal window used later. Solution: Ignore :startinsert in a terminal window. (closes https://github.com/vim/vim/issues/5952)
author Bram Moolenaar <Bram@vim.org>
date Sun, 19 Apr 2020 18:15:04 +0200
parents 336483164ca6
children f40231487a49
comparison
equal deleted inserted replaced
20096:f68ea7ef5ab2 20097:165ec447ca77
7748 // cursor line can be zero on startup 7748 // cursor line can be zero on startup
7749 if (!curwin->w_cursor.lnum) 7749 if (!curwin->w_cursor.lnum)
7750 curwin->w_cursor.lnum = 1; 7750 curwin->w_cursor.lnum = 1;
7751 set_cursor_for_append_to_line(); 7751 set_cursor_for_append_to_line();
7752 } 7752 }
7753 #ifdef FEAT_TERMINAL
7754 // Ignore this when running in an active terminal.
7755 if (term_job_running(curbuf->b_term))
7756 return;
7757 #endif
7753 7758
7754 // Ignore the command when already in Insert mode. Inserting an 7759 // Ignore the command when already in Insert mode. Inserting an
7755 // expression register that invokes a function can do this. 7760 // expression register that invokes a function can do this.
7756 if (State & INSERT) 7761 if (State & INSERT)
7757 return; 7762 return;