Skip to content

Commit 65c68ea

Browse files
committed
fixed breakpoint_cmd being improperly reset (gh issue 795)
1 parent fe9c270 commit 65c68ea

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

autoload/pymode/breakpoint.vim

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
fun! pymode#breakpoint#init() "{{{
22

3-
if !g:pymode_breakpoint
3+
" If breakpoints are either disabled or already defined do nothing.
4+
if ! g:pymode_breakpoint || g:pymode_breakpoint_cmd != ''
45
return
5-
endif
6-
7-
if g:pymode_breakpoint_cmd == ''
8-
let g:pymode_breakpoint_cmd = 'import pdb; pdb.set_trace() # XXX BREAKPOINT'
9-
10-
if g:pymode_python == 'disable'
11-
return
12-
endif
136

14-
endif
7+
" Else go for a 'smart scan' of the defaults.
8+
else
159

1610
PymodePython << EOF
1711

@@ -26,6 +20,7 @@ for module in ('wdb', 'pudb', 'ipdb'):
2620
continue
2721

2822
EOF
23+
endif
2924

3025
endfunction "}}}
3126

0 commit comments

Comments
 (0)