summaryrefslogtreecommitdiffstats
path: root/runtime/syntax
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-02-20 21:37:40 +0000
committerBram Moolenaar <Bram@vim.org>2006-02-20 21:37:40 +0000
commitfaa959a8700219bd1726943cbb956001b5f737e4 (patch)
tree3cb74926336d18b833091edeb49c267ed5813394 /runtime/syntax
parent70836c8ba83c180f978ed0ac92fb5ee78140a631 (diff)
updated for version 7.0202v7.0202
Diffstat (limited to 'runtime/syntax')
-rw-r--r--runtime/syntax/colortest.vim11
1 files changed, 6 insertions, 5 deletions
diff --git a/runtime/syntax/colortest.vim b/runtime/syntax/colortest.vim
index 0b59fa180f..377eba98fe 100644
--- a/runtime/syntax/colortest.vim
+++ b/runtime/syntax/colortest.vim
@@ -1,7 +1,7 @@
" Vim script for testing colors
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Contributors: Rafael Garcia-Suarez, Charles Campbell
-" Last Change: 2006 Feb 16
+" Last Change: 2006 Feb 20
" edit this file, then do ":source %", and check if the colors match
@@ -54,11 +54,12 @@
" Open this file in a window if it isn't edited yet.
" Use the current window if it's empty.
-if &mod || line('$') != 1 || getline(1) != ''
- new
-endif
if expand('%:p') != expand('<sfile>:p')
- exe "edit " . expand('<sfile>')
+ if &mod || line('$') != 1 || getline(1) != ''
+ exe "new " . expand('<sfile>')
+ else
+ exe "edit " . expand('<sfile>')
+ endif
endif
syn clear