Author: reinhard
Date: 2006-04-05 06:36:04 -0500 (Wed, 05 Apr 2006)
New Revision: 8373

Modified:
   trunk/gnue-common/utils/vim/indent_python.vim
Log:
Fix Python indenting definition.


Modified: trunk/gnue-common/utils/vim/indent_python.vim
===================================================================
--- trunk/gnue-common/utils/vim/indent_python.vim       2006-04-05 11:33:43 UTC 
(rev 8372)
+++ trunk/gnue-common/utils/vim/indent_python.vim       2006-04-05 11:36:04 UTC 
(rev 8373)
@@ -5,8 +5,13 @@
 " Patch is already sent to the maintainer of the original python indenting
 " definition, maybe he'll include it in a later release of vim.
 
-let s:maxoff = 50
+" Only define the function once.
+if exists("*GetPythonIndent_new")
+  finish
+endif
 
+let s:maxoff = 50      " maximum number of lines to look backwards for ()
+
 setlocal indentexpr=GetPythonIndent_new(v:lnum)
 
 function GetPythonIndent_new(lnum)



_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to