Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Version 1.9
Fixed bug in IM-Python menu where function and class names beginning with "_" were not included.
  • Loading branch information
jvfranklin authored and vim-scripts committed Nov 6, 2010
1 parent 97ed3fc commit 6dbc984
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/python.vim
Expand Up @@ -2,7 +2,7 @@
" FILE: python.vim
" LAST MODIFICATION: 2006-08-18 07:30
" (C) Copyright 2001-2005 Mikael Berthe <bmikael@lists.lilotux.net>
" Version: 1.8
" Version: 1.9

" USAGE:
"
Expand Down Expand Up @@ -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('.')
Expand Down

0 comments on commit 6dbc984

Please sign in to comment.