Mercurial > vim
comparison src/term.c @ 10676:b8c04c007d39 v8.0.0228
patch 8.0.0228: pasting in xterm on the command line has PasteStart
commit https://github.com/vim/vim/commit/abbc448bc09a292ec1263ffe69b4cb3d1c57f020
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 24 15:57:55 2017 +0100
patch 8.0.0228: pasting in xterm on the command line has PasteStart
Problem: When pasting test in an xterm on the command line it is surrounded
by <PasteStart> and <PasteEnd>. (Johannes Kaltenbach)
Solution: Add missing changes.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 24 Jan 2017 16:00:05 +0100 |
parents | 27be410d6d29 |
children | 501f46f7644c |
comparison
equal
deleted
inserted
replaced
10675:4fc5b92e6ae4 | 10676:b8c04c007d39 |
---|---|
3146 { | 3146 { |
3147 if (full_screen && !termcap_active) | 3147 if (full_screen && !termcap_active) |
3148 { | 3148 { |
3149 out_str(T_TI); /* start termcap mode */ | 3149 out_str(T_TI); /* start termcap mode */ |
3150 out_str(T_KS); /* start "keypad transmit" mode */ | 3150 out_str(T_KS); /* start "keypad transmit" mode */ |
3151 out_str(T_BE); /* enable bracketed paste moe */ | 3151 out_str(T_BE); /* enable bracketed paste mode */ |
3152 out_flush(); | 3152 out_flush(); |
3153 termcap_active = TRUE; | 3153 termcap_active = TRUE; |
3154 screen_start(); /* don't know where cursor is now */ | 3154 screen_start(); /* don't know where cursor is now */ |
3155 #ifdef FEAT_TERMRESPONSE | 3155 #ifdef FEAT_TERMRESPONSE |
3156 # ifdef FEAT_GUI | 3156 # ifdef FEAT_GUI |
3196 /* Check for termcodes first, otherwise an external program may | 3196 /* Check for termcodes first, otherwise an external program may |
3197 * get them. */ | 3197 * get them. */ |
3198 check_for_codes_from_term(); | 3198 check_for_codes_from_term(); |
3199 } | 3199 } |
3200 #endif | 3200 #endif |
3201 out_str(T_BD); /* disable bracketed paste moe */ | 3201 out_str(T_BD); /* disable bracketed paste mode */ |
3202 out_str(T_KE); /* stop "keypad transmit" mode */ | 3202 out_str(T_KE); /* stop "keypad transmit" mode */ |
3203 out_flush(); | 3203 out_flush(); |
3204 termcap_active = FALSE; | 3204 termcap_active = FALSE; |
3205 cursor_on(); /* just in case it is still off */ | 3205 cursor_on(); /* just in case it is still off */ |
3206 out_str(T_TE); /* stop termcap mode */ | 3206 out_str(T_TE); /* stop termcap mode */ |