summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.1198
blob: 101107ca82ed13ea6fff0af4a2c7476e5214d3e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
To: vim_dev@googlegroups.com
Subject: Patch 8.1.1198
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 8.1.1198
Problem:    Bracketed paste may remain active after Vim exists, because the
            terminal emulater restores the setting.
Solution:   Set/reset bracketed paste mode before setting the terminal mode.
            (closes #3579)
Files:	    src/term.c


*** ../vim-8.1.1197/src/term.c	2019-04-21 00:00:07.946354820 +0200
--- src/term.c	2019-04-21 17:11:46.160560182 +0200
***************
*** 3496,3514 ****
  #endif
  #ifdef FEAT_MOUSE_TTY
  	    if (tmode != TMODE_RAW)
! 		mch_setmouse(FALSE);	/* switch mouse off */
  #endif
! 	    if (tmode != TMODE_RAW)
! 		out_str(T_BD);		/* disable bracketed paste mode */
  	    out_flush();
! 	    mch_settmode(tmode);	/* machine specific function */
  	    cur_tmode = tmode;
  #ifdef FEAT_MOUSE
  	    if (tmode == TMODE_RAW)
! 		setmouse();		/* may switch mouse on */
  #endif
- 	    if (tmode == TMODE_RAW)
- 		out_str(T_BE);		/* enable bracketed paste mode */
  	    out_flush();
  	}
  #ifdef FEAT_TERMRESPONSE
--- 3496,3518 ----
  #endif
  #ifdef FEAT_MOUSE_TTY
  	    if (tmode != TMODE_RAW)
! 		mch_setmouse(FALSE);	// switch mouse off
  #endif
! 	    if (termcap_active)
! 	    {
! 		if (tmode != TMODE_RAW)
! 		    out_str(T_BD);	// disable bracketed paste mode
! 		else
! 		    out_str(T_BE);	// enable bracketed paste mode (should
! 					// be before mch_settmode().
! 	    }
  	    out_flush();
! 	    mch_settmode(tmode);	// machine specific function
  	    cur_tmode = tmode;
  #ifdef FEAT_MOUSE
  	    if (tmode == TMODE_RAW)
! 		setmouse();		// may switch mouse on
  #endif
  	    out_flush();
  	}
  #ifdef FEAT_TERMRESPONSE
*** ../vim-8.1.1197/src/version.c	2019-04-21 15:54:29.606587753 +0200
--- src/version.c	2019-04-21 17:08:36.253637095 +0200
***************
*** 773,774 ****
--- 773,776 ----
  {   /* Add new patch number below this line */
+ /**/
+     1198,
  /**/

-- 
Even got a Datapoint 3600(?) with a DD50 connector instead of the
usual DB25...  what a nightmare trying to figure out the pinout
for *that* with no spex...

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///