From 0a78703ffe1bc64694117432a4f1be62fbc98e91 Mon Sep 17 00:00:00 2001 From: ordinary-slim Date: Sun, 2 Nov 2025 12:50:30 +0100 Subject: [PATCH] simplify directory names before mkdir Fixes bug where 'mkdir('./build/..') is called --- autoload/vimtex/compiler/_template.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/vimtex/compiler/_template.vim b/autoload/vimtex/compiler/_template.vim index f31cf38f28e..28b5022c4f3 100644 --- a/autoload/vimtex/compiler/_template.vim +++ b/autoload/vimtex/compiler/_template.vim @@ -136,6 +136,7 @@ function! s:compiler._create_build_dir(path) abort dict " {{{1 call map(l:dirs, {_, x -> \ (vimtex#paths#is_abs(a:path) ? '' : self.file_info.root . '/') \ . a:path . '/' . x}) + call map(l:dirs, {_, x -> simplify(x) }) call filter(l:dirs, '!isdirectory(v:val)') if empty(l:dirs) | return | endif