summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.1258
blob: 8f91ab4bf7ed9a78041dad94701e8a59e5b9151b (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
To: vim_dev@googlegroups.com
Subject: Patch 8.1.1258
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.1258
Problem:    The "N files to edit" message can not be surpressed.
Solution:   Surpress the message with --not-a-term. (closes #4320)
Files:	    src/main.c


*** ../vim-8.1.1257/src/main.c	2019-04-28 22:25:03.244480028 +0200
--- src/main.c	2019-05-03 22:22:01.481884022 +0200
***************
*** 375,383 ****
  	setvbuf(stdout, NULL, _IOLBF, 0);
  #endif
  
!     /* This message comes before term inits, but after setting "silent_mode"
!      * when the input is not a tty. */
!     if (GARGCOUNT > 1 && !silent_mode)
  	printf(_("%d files to edit\n"), GARGCOUNT);
  
      if (params.want_full_screen && !silent_mode)
--- 375,383 ----
  	setvbuf(stdout, NULL, _IOLBF, 0);
  #endif
  
!     // This message comes before term inits, but after setting "silent_mode"
!     // when the input is not a tty. Omit the message with --not-a-term.
!     if (GARGCOUNT > 1 && !silent_mode && !is_not_a_term())
  	printf(_("%d files to edit\n"), GARGCOUNT);
  
      if (params.want_full_screen && !silent_mode)
*** ../vim-8.1.1257/src/version.c	2019-05-03 22:14:59.452363625 +0200
--- src/version.c	2019-05-03 22:24:01.537189664 +0200
***************
*** 769,770 ****
--- 769,772 ----
  {   /* Add new patch number below this line */
+ /**/
+     1258,
  /**/

-- 
An indication you must be a manager:
You feel sorry for Dilbert's boss.

 /// 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    ///