1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-29 14:44:56 +03:00

Stripped directory prefix from c-family autogenerated header guards

This commit is contained in:
Carson Riker 2021-03-31 17:33:04 -04:00
parent 212242cc60
commit b98ec3836b

View File

@ -387,7 +387,7 @@ define-command -hidden c-family-insert-include-guards %{
evaluate-commands %sh{ evaluate-commands %sh{
case "${kak_opt_c_include_guard_style}" in case "${kak_opt_c_include_guard_style}" in
ifdef) ifdef)
echo 'execute-keys ggi<c-r>%<ret><esc>ggxs\.<ret>c_<esc><space>A_INCLUDED<esc>ggxyppI#ifndef<space><esc>jI#define<space><esc>jI#endif<space>//<space><esc>O<esc>' echo 'execute-keys ggi<c-r>%<ret><esc>ggI/<esc>xs^.*/<ret>dxs\.<ret>c_<esc><space>A_INCLUDED<esc>ggxyppI#ifndef<space><esc>jI#define<space><esc>jI#endif<space>//<space><esc>O<esc>'
;; ;;
pragma) pragma)
echo 'execute-keys ggi#pragma<space>once<esc>' echo 'execute-keys ggi#pragma<space>once<esc>'