From 97bad15c989dc8dcfc8241ef2c44f06ba1d06306 Mon Sep 17 00:00:00 2001 From: Alejandro Exojo Date: Sat, 14 Jan 2012 19:35:33 +0100 Subject: [PATCH] Also unset the 'a' flag in formatoptions. --- plugin/UltiSnips/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/UltiSnips/__init__.py b/plugin/UltiSnips/__init__.py index 5056cbb..ce7154e 100644 --- a/plugin/UltiSnips/__init__.py +++ b/plugin/UltiSnips/__init__.py @@ -1106,9 +1106,9 @@ class SnippetManager(object): # Care for textwrapping if not snippet.keep_formatoptions_unchanged: self._cached_offending_vim_options["fo"] = ''.join( - c for c in vim.eval("&fo") if c in "ct" + c for c in vim.eval("&fo") if c in "cta" ) - for c in "ct": vim.command("set fo-=%s" % c) + for c in "cta": vim.command("set fo-=%s" % c) def _reset_offending_vim_options(self): # Textwrapping