From 466124f4b2d4170d9a181d864eaffbf992c4f8b2 Mon Sep 17 00:00:00 2001 From: ujihisa Date: Tue, 9 Jul 2013 18:28:55 -0700 Subject: [PATCH] refs #167 Improved C snip; fopen should pair fclose. --- autoload/neosnippet/snippets/c.snip | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/neosnippet/snippets/c.snip b/autoload/neosnippet/snippets/c.snip index 7c7bf2f..49e60ff 100644 --- a/autoload/neosnippet/snippets/c.snip +++ b/autoload/neosnippet/snippets/c.snip @@ -146,7 +146,9 @@ snippet helloworld # fopen snippet fopen abbr fopen("...", "..."); - fopen("${0:TARGET}", "${1:MODE}"); + fopen("${1:PATH}", "${2:MODE}"); + ${0:TARGET} + fclose(${3:FD}); # fgets snippet fgets