Mercurial > vim
comparison src/evalfunc.c @ 12112:6afc7339c2ad v8.0.0936
patch 8.0.0936: mode() returns wrong value for a terminal window
commit https://github.com/vim/vim/commit/2bb7b6b0e477612cc098cba27cc63ec3d19a2527
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 13 20:58:33 2017 +0200
patch 8.0.0936: mode() returns wrong value for a terminal window
Problem: Mode() returns wrong value for a terminal window.
Solution: Return 't' when typed keys go to a job.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 13 Aug 2017 21:00:04 +0200 |
parents | 560a2b6789c3 |
children | 60cf03e59402 |
comparison
equal
deleted
inserted
replaced
12111:feca91869d87 | 12112:6afc7339c2ad |
---|---|
7847 { | 7847 { |
7848 /* Testing the two-character code. */ | 7848 /* Testing the two-character code. */ |
7849 buf[0] = 'x'; | 7849 buf[0] = 'x'; |
7850 buf[1] = '!'; | 7850 buf[1] = '!'; |
7851 } | 7851 } |
7852 #ifdef FEAT_TERMINAL | |
7853 else if (term_use_loop()) | |
7854 buf[0] = 't'; | |
7855 #endif | |
7852 else if (VIsual_active) | 7856 else if (VIsual_active) |
7853 { | 7857 { |
7854 if (VIsual_select) | 7858 if (VIsual_select) |
7855 buf[0] = VIsual_mode + 's' - 'v'; | 7859 buf[0] = VIsual_mode + 's' - 'v'; |
7856 else | 7860 else |