Set encoding for plugin files

Closes #54.
This commit is contained in:
Marco Hinz 2013-08-19 17:36:16 +02:00
parent 50b7780e0d
commit b29cd71f6d
8 changed files with 32 additions and 20 deletions

View File

@ -1,3 +1,5 @@
scriptencoding utf-8
if exists('b:autoloaded_sy') if exists('b:autoloaded_sy')
finish finish
endif endif

View File

@ -1,3 +1,5 @@
scriptencoding utf-8
if exists('b:autoloaded_sy_debug') if exists('b:autoloaded_sy_debug')
finish finish
endif endif

View File

@ -1,3 +1,5 @@
scriptencoding utf-8
if exists('b:autoloaded_sy_highlight') if exists('b:autoloaded_sy_highlight')
finish finish
endif endif

View File

@ -1,3 +1,5 @@
scriptencoding utf-8
if exists('b:autoloaded_sy_jump') if exists('b:autoloaded_sy_jump')
finish finish
endif endif

View File

@ -1,3 +1,5 @@
scriptencoding utf-8
if exists('b:autoloaded_sy_repo') if exists('b:autoloaded_sy_repo')
finish finish
endif endif
@ -162,11 +164,11 @@ function! sy#repo#process_diff(path, diff) abort
let offset += 1 let offset += 1
endwhile endwhile
" 2 lines removed: " 2 lines removed:
" @@ -6,2 +5,0 @@ this is line 5 " @@ -6,2 +5,0 @@ this is line 5
" -this is line 6 " -this is line 6
" -this is line 7 " -this is line 7
elseif (old_count >= 1) && (new_count == 0) elseif (old_count >= 1) && (new_count == 0)
if new_line == 0 if new_line == 0
@ -175,13 +177,13 @@ function! sy#repo#process_diff(path, diff) abort
call add(signs, { 'type': (old_count > 9) ? 'SignifyDeleteMore' : 'SignifyDelete'. old_count, 'lnum': new_line, 'path': a:path }) call add(signs, { 'type': (old_count > 9) ? 'SignifyDeleteMore' : 'SignifyDelete'. old_count, 'lnum': new_line, 'path': a:path })
endif endif
" 2 lines changed: " 2 lines changed:
" @@ -5,2 +5,2 @@ this is line 4 " @@ -5,2 +5,2 @@ this is line 4
" -this is line 5 " -this is line 5
" -this is line 6 " -this is line 6
" +this os line 5 " +this os line 5
" +this os line 6 " +this os line 6
elseif old_count == new_count elseif old_count == new_count
let offset = 0 let offset = 0
@ -210,13 +212,13 @@ function! sy#repo#process_diff(path, diff) abort
let deleted = old_count - new_count let deleted = old_count - new_count
call add(signs, { 'type': (deleted > 9) ? 'SignifyChangeDeleteMore' : 'SignifyChangeDelete'. deleted, 'lnum': new_line, 'path': a:path }) call add(signs, { 'type': (deleted > 9) ? 'SignifyChangeDeleteMore' : 'SignifyChangeDelete'. deleted, 'lnum': new_line, 'path': a:path })
" lines changed and added: " lines changed and added:
" @@ -5 +5,3 @@ this is line 4 " @@ -5 +5,3 @@ this is line 4
" -this is line 5 " -this is line 5
" +this os line 5 " +this os line 5
" +this is line 42 " +this is line 42
" +this is line 666 " +this is line 666
else else
let offset = 0 let offset = 0
@ -230,6 +232,7 @@ function! sy#repo#process_diff(path, diff) abort
endwhile endwhile
endif endif
endif endif
call sy#sign#set(signs) call sy#sign#set(signs)
endfor endfor
endfunction endfunction

View File

@ -1,3 +1,5 @@
scriptencoding utf-8
if exists('b:autoloaded_sy_sign') if exists('b:autoloaded_sy_sign')
finish finish
endif endif

View File

@ -1,3 +1,5 @@
scriptencoding utf-8
if exists('b:autoloaded_sy_util') if exists('b:autoloaded_sy_util')
finish finish
endif endif

View File

@ -1,7 +1,4 @@
" Plugin: https://github.com/mhinz/vim-signify scriptencoding utf-8
" Description: show a diff from a version control system via the signcolumn
" Maintainer: Marco Hinz <http://github.com/mhinz>
" Version: 1.9
if exists('g:loaded_signify') || !has('signs') || &cp if exists('g:loaded_signify') || !has('signs') || &cp
finish finish