Commit 885a1788 authored by HiPhish's avatar HiPhish
Browse files

Add test for percent character in file name

parent f840ef0d
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -69,6 +69,18 @@ Then:
  AssertEqual 'jinja', &filetype


Given (File name with percent character):
  Hello world

Execute:
  silent execute 'file' fnameescape('foo%bar.html.jinja')
  filetype detect

Then:
  AssertEqual 'html.jinja', &filetype
  AssertEqual 'foo%bar.html.jinja', bufname()


Given (Do not double-detect jinja):
  {# This is a Jinja comment #}