From b98ec3836b1cbc21707be82ecf7773dbd2ed5b8d Mon Sep 17 00:00:00 2001 From: Carson Riker Date: Wed, 31 Mar 2021 17:33:04 -0400 Subject: [PATCH] Stripped directory prefix from c-family autogenerated header guards --- rc/filetype/c-family.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/c-family.kak b/rc/filetype/c-family.kak index 9cc02b6d..33b93ef1 100644 --- a/rc/filetype/c-family.kak +++ b/rc/filetype/c-family.kak @@ -387,7 +387,7 @@ define-command -hidden c-family-insert-include-guards %{ evaluate-commands %sh{ case "${kak_opt_c_include_guard_style}" in ifdef) - echo 'execute-keys ggi%ggxs\.c_A_INCLUDEDggxyppI#ifndefjI#definejI#endif//O' + echo 'execute-keys ggi%ggI/xs^.*/dxs\.c_A_INCLUDEDggxyppI#ifndefjI#definejI#endif//O' ;; pragma) echo 'execute-keys ggi#pragmaonce'