summaryrefslogtreecommitdiffstats
path: root/runtime/ftplugin/cobol.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-15 18:55:18 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-15 18:55:18 +0200
commit3d1cde8a2f28dce2c82d2b2b4c5e35e6662030e0 (patch)
tree997f03c1bd793148efe3387f64c9e3efdcb44be9 /runtime/ftplugin/cobol.vim
parente3c37d8ebf9dbbf210fde4a5fb28eb1f2a492a34 (diff)
Update runtime files.
Diffstat (limited to 'runtime/ftplugin/cobol.vim')
-rw-r--r--runtime/ftplugin/cobol.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/ftplugin/cobol.vim b/runtime/ftplugin/cobol.vim
index d96a1bf281..ec1e95456d 100644
--- a/runtime/ftplugin/cobol.vim
+++ b/runtime/ftplugin/cobol.vim
@@ -2,7 +2,7 @@
" Language: cobol
" Maintainer: Ankit Jain <ajatkj@yahoo.co.in>
" (formerly Tim Pope <vimNOSPAM@tpope.info>)
-" Last Update: By Ankit Jain (changed maintainer) on 22.03.2019
+" Last Update: By Ankit Jain (add gtk support) on 15.08.2020
" Insert mode mappings: <C-T> <C-D> <Tab>
" Normal mode mappings: < > << >> [[ ]] [] ][
@@ -37,7 +37,8 @@ if exists("loaded_matchit")
\ '-\@<!\<\%(delete\|rewrite\|start\|write\|read\)\>\%(.*\(\%$\|\%(\n\%(\%(\s*\|.\{6\}\)[*/].*\n\)*\)\=\s*\%(invalid\s\+key\|at\s\+end\|no\s\+data\|at\s\+end-of-page\)\>\)\)\@=:\%(\<not\s\+\)\@<!\<\%(not\s\+\)\=\%(invalid\s\+key\|at\s\+end\|no\s\+data\|at\s\+end-of-page\)\>:\<end-\%(delete\|rewrite\|start\|write\|read\)\>' .s:ordot
endif
-if has("gui_win32") && !exists("b:browsefilter")
+" add gtk support
+if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
let b:browsefilter = "COBOL Source Files (*.cbl, *.cob)\t*.cbl;*.cob;*.lib\n".
\ "All Files (*.*)\t*.*\n"
endif