File: 01_foldingfix.dpatch

package info (click to toggle)
vim-latexsuite 20060325-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,452 kB
  • ctags: 633
  • sloc: sh: 5,372; python: 280; makefile: 65; perl: 50
file content (19 lines) | stat: -rw-r--r-- 960 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_foldingfix.dpatch by  <matthijs@monster.cacholong.nl>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix so that it folds properly if anything precedes \end{figure} #246798

@DPATCH@
diff -urNad vim-latexsuite-0.20041219/ftplugin/latex-suite/folding.vim /tmp/dpep.6yV6MR/vim-latexsuite-0.20041219/ftplugin/latex-suite/folding.vim
--- vim-latexsuite-0.20041219/ftplugin/latex-suite/folding.vim	2004-05-22 03:35:27.000000000 +0200
+++ /tmp/dpep.6yV6MR/vim-latexsuite-0.20041219/ftplugin/latex-suite/folding.vim	2005-05-04 00:37:54.907154904 +0200
@@ -285,6 +285,8 @@
 					call AddSyntaxFoldItem('^\s*\\'.s.'{[^{}]*$','^[^}]*}',0,0)
 				else
 					call AddSyntaxFoldItem('^\s*\\begin{'.s,'^\s*\\end{'.s,0,0)
+					" call AddSyntaxFoldItem('^\s*\\begin{'.s,'^\s*\\end{'.s,0,0)
+					call AddSyntaxFoldItem('^\s*\\begin{'.s,'\(^\|\s\)\s*\\end{'.s,0,0)
 				endif
 			endif
 		endwhile