From 0877af4dffe6d86439f8069b510129527ce38b27 Mon Sep 17 00:00:00 2001 From: Jon Franklin Date: Fri, 29 Aug 2008 00:00:00 +0000 Subject: [PATCH] Version 1.13 Fix for bug that prevented multi-line class and function definitions from showing up in the IM-Python menu. Patch provided by Branden Rolston. --- plugin/python_fn.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/python_fn.vim b/plugin/python_fn.vim index fbdd003..7c7cf21 100644 --- a/plugin/python_fn.vim +++ b/plugin/python_fn.vim @@ -1,9 +1,9 @@ " -*- vim -*- -" FILE: python.vim -" LAST MODIFICATION: 2008-05-17 6:29pm +" FILE: python_fn.vim +" LAST MODIFICATION: 2008-08-28 8:19pm " (C) Copyright 2001-2005 Mikael Berthe " Maintained by Jon Franklin -" Version: 1.12 +" Version: 1.13 " USAGE: " @@ -341,7 +341,7 @@ function! MenuBuilder() let parentclass = "" while line(".") < line("$") " search for a class or function - if match ( getline("."), '^\s*class\s\+[_a-zA-Z].*:\|^\s*def\s\+[_a-zA-Z].*:' ) != -1 + if match ( getline("."), '^\s*class\s\+[_a-zA-Z].*\|^\s*def\s\+[_a-zA-Z].*' ) != -1 norm ^ let linenum = line('.') let indentcol = col('.')