From da2c785221810b3d57479bb4b3678aabf32f3b88 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 13 Feb 2020 10:56:46 +0100 Subject: [PATCH] Set scriptencoding for file with utf8 BOM --- autoload/gitgutter/diff.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/gitgutter/diff.vim b/autoload/gitgutter/diff.vim index be8a685..db827f5 100644 --- a/autoload/gitgutter/diff.vim +++ b/autoload/gitgutter/diff.vim @@ -1,3 +1,5 @@ +scriptencoding utf8 + let s:nomodeline = (v:version > 703 || (v:version == 703 && has('patch442'))) ? '' : '' let s:hunk_re = '^@@ -\(\d\+\),\?\(\d*\) +\(\d\+\),\?\(\d*\) @@' @@ -405,5 +407,3 @@ endfunction function! s:save_last_seen_change(bufnr) abort call gitgutter#utility#setbufvar(a:bufnr, 'tick', getbufvar(a:bufnr, 'changedtick')) endfunction - -