Hello everyone:

Forwarding a patch authored by Doug Kearns <dougkearns at gmail.com>
that makes sure the MATLAB indent script sets b:undo_indent.

I did take the freedom to change it to use unabbreviated names of options
since that is what is used otherwise throughout the script.


Kind regards
Axel Forsman

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAPt4RUqLr6zJUL5M_05cDYM7o2mdG5oUbZsc5k50mQZAxPUQKA%40mail.gmail.com.
diff --git a/runtime/indent/matlab.vim b/runtime/indent/matlab.vim
index 6390445c6..c12912e3c 100644
--- a/runtime/indent/matlab.vim
+++ b/runtime/indent/matlab.vim
@@ -9,6 +9,7 @@ let b:did_indent = 1
 
 setlocal indentexpr=GetMatlabIndent()
 setlocal indentkeys=!,o,O,e,0=end,0=elseif,0=case,0=otherwise,0=catch,0=function,0=elsei
+let b:undo_indent = "setlocal indentexpr< indentkeys<"
 
 " The value of the Function indenting format in
 " MATLAB Editor/Debugger Language Preferences.

Raspunde prin e-mail lui