summaryrefslogtreecommitdiff
blob: 5299ea5c3d09932dff3be0a08f06516873a9762a (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
84
85
86
87
88
89
90
91
92
To: vim-dev@vim.org
Subject: Patch 6.1.062
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
------------

Patch 6.1.062
Problem:    The "man" filetype plugin doesn't work properly on Solaris 5.
Solution:   Use a different way to detect that "man -s" should be used. (Hugh
	    Sasse)
Files:	    runtime/ftplugin/man.vim


*** ../vim61.061/runtime/ftplugin/man.vim	Thu Sep 20 11:26:58 2001
--- runtime/ftplugin/man.vim	Sun May 12 14:17:41 2002
***************
*** 1,7 ****
  " Vim filetype plugin file
  " Language:	man
  " Maintainer:	Nam SungHyun <namsh@kldp.org>
! " Last Change:	2001 Sep 20
  
  " To make the ":Man" command available before editing a manual page, source
  " this script from your startup vimrc file.
--- 1,7 ----
  " Vim filetype plugin file
  " Language:	man
  " Maintainer:	Nam SungHyun <namsh@kldp.org>
! " Last Change:	2002 May 12
  
  " To make the ":Man" command available before editing a manual page, source
  " this script from your startup vimrc file.
***************
*** 41,47 ****
  
  let s:man_tag_depth = 0
  
! if $OSTYPE =~ "solaris"
    let s:man_sect_arg = "-s"
    let s:man_find_arg = "-l"
  else
--- 41,47 ----
  
  let s:man_tag_depth = 0
  
! if system('uname -s') =~ "SunOS" && system('uname -r') =~ "^5"
    let s:man_sect_arg = "-s"
    let s:man_find_arg = "-l"
  else
***************
*** 80,86 ****
  func <SID>FindPage(sect, page)
    let where = system("/usr/bin/man ".s:man_find_arg.' '.s:GetCmdArg(a:sect, a:page))
    if where !~ "^/"
!     if substitute(where, ".* \\(.*$\\)", "\\1", "") !~ "^/"
        return 0
      endif
    endif
--- 80,86 ----
  func <SID>FindPage(sect, page)
    let where = system("/usr/bin/man ".s:man_find_arg.' '.s:GetCmdArg(a:sect, a:page))
    if where !~ "^/"
!     if matchstr(where, " [^ ]*$") !~ "^ /"
        return 0
      endif
    endif
*** ../vim61.061/src/version.c	Sat May 11 20:59:21 2002
--- src/version.c	Sun May 12 14:28:12 2002
***************
*** 608,609 ****
--- 608,611 ----
  {   /* Add new patch number below this line */
+ /**/
+     62,
  /**/

-- 
A salesperson says:            Translation:
"backward compatible"          Old technology
"Premium"                      Overpriced
"Can't keep it on the shelf"   Unavailable
"Stands alone"                 Piece of shit
"Proprietary"                  Incompatible
				(Scott Adams - The Dilbert principle)

 ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
\\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
 \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///