]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 8.2.0302: setting 'term' may cause error in TermChanged autocommand v8.2.0302
authorBram Moolenaar <Bram@vim.org>
Sat, 22 Feb 2020 21:45:55 +0000 (22:45 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 22 Feb 2020 21:45:55 +0000 (22:45 +0100)
commit0c81d1b11278b2d962aa6fbb4aa974dab97be59d
tree25ab018d04c0f46216f2321ad47faa1fc9aaed32
parentb654103ad1e379348616f354272db86804ab4bdb
patch 8.2.0302: setting 'term' may cause error in TermChanged autocommand

Problem:    Setting 'term' may cause error in TermChanged autocommand.
Solution:   Use aucmd_prepbuf() to switch to the buffer where the autocommand
            is to be executed. (closes #5682)
src/term.c
src/testdir/test_autocmd.vim
src/version.c