Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit65c68ea

Browse files
committed
fixed breakpoint_cmd being improperly reset (gh issue 795)
1 parentfe9c270 commit65c68ea

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

‎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-
ifg:pymode_breakpoint_cmd==''
8-
letg:pymode_breakpoint_cmd='import pdb; pdb.set_trace() # XXX BREAKPOINT'
9-
10-
ifg: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)

[8]ページ先頭

©2009-2025 Movatter.jp