Remove useless try blocks in comment functions

We should not have exceptions raised there, if there is, do not
ignore them
This commit is contained in:
Maxime Coste 2015-09-22 19:09:54 +01:00
parent 6c73d6e794
commit 20f744bd53

View File

@ -196,10 +196,8 @@ def c-family-comment-selection -docstring "Comment the current selection" %{
## Comment the selection ## Comment the selection
exec %{a */<esc>i/* <esc>3H} exec %{a */<esc>i/* <esc>3H}
} catch %{ } catch %{
try %{ ## Uncomment the commented selection
## Uncomment the commented selection exec -draft %{s(\A/\* )|( \*/\z)<ret>d}
exec -draft %{s(\A/\* )|( \*/\z)<ret>d}
}
} }
} }
} }
@ -219,10 +217,8 @@ def c-family-comment-line -docstring "Comment the current line" %{
## Comment the line ## Comment the line
exec %{i// <esc>3H} exec %{i// <esc>3H}
} catch %{ } catch %{
try %{ ## Uncomment the line
## Uncomment the line exec -draft %{s^//\h*<ret>d}
exec -draft %{s^//\h*<ret>d}
}
} }
} }
} }