We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cfa37dd + 6b66ee6 commit c8cba1bCopy full SHA for c8cba1b
1 file changed
plugin/python/codecoverage.vim
@@ -16,7 +16,7 @@ except NameError:
16
17
clover = vim.eval('a:clover')
18
buf = vim.eval('bufname("%")')
19
-fileName = vim.eval('fnamemodify("'+buf+'",":p")')
+fileName = vim.eval('fnamemodify("'+buf+'","%")')
20
21
"""
22
XML may already be parsed and held in memory
@@ -41,7 +41,7 @@ try:
41
mtime = time.ctime(os.path.getmtime(clover))
42
43
ctxt = doc.xpathNewContext()
44
- res = ctxt.xpathEval("//file[@name='"+fileName+"']/line[@type='stmt']")
+ res = ctxt.xpathEval("//file[substring(@name, string-length(@name) - string-length('"+fileName+"') + 1)='"+fileName+"']/line[@type='stmt']")
45
cur_signs = int(vim.eval('g:phpqa_num_cc_signs'))
46
showcovered = int(vim.eval('g:phpqa_codecoverage_showcovered'))
47
cmd_list = ''
0 commit comments