From 6dbc9842788acdddc1650cc106e13f6a25cb80f7 Mon Sep 17 00:00:00 2001 From: Jon Franklin Date: Sat, 26 Aug 2006 00:00:00 +0000 Subject: [PATCH] Version 1.9 Fixed bug in IM-Python menu where function and class names beginning with "_" were not included. --- plugin/python.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/python.vim b/plugin/python.vim index 27b57b4..4a04686 100644 --- a/plugin/python.vim +++ b/plugin/python.vim @@ -2,7 +2,7 @@ " FILE: python.vim " LAST MODIFICATION: 2006-08-18 07:30 " (C) Copyright 2001-2005 Mikael Berthe -" Version: 1.8 +" Version: 1.9 " USAGE: " @@ -312,7 +312,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('.')