Skip to content

Commit a28f275

Browse files
committed
Easier search
1 parent dcf5593 commit a28f275

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

autoload/pymode.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ endfunction "}}}
159159

160160

161161
fun! pymode#Modeline() "{{{
162-
let modeline = getline('$')
162+
let modeline = getline(prevnonblank('$'))
163163
if modeline =~ '^#\s\+pymode:'
164164
for ex in split(modeline, ':')[1:]
165165
let [name, value] = split(ex, '=')
@@ -170,3 +170,6 @@ endfunction "}}}
170170

171171

172172
" vim: fdm=marker:fdl=0
173+
174+
175+

0 commit comments

Comments
 (0)