File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ fun! pymode#breakpoint#init() "{{{
4
4
return
5
5
endif
6
6
7
- if g: pymode_breakpoint_template == ' '
8
- let g: pymode_breakpoint_template = ' import pdb; pdb.set_trace() # XXX BREAKPOINT'
7
+ if g: pymode_breakpoint_cmd == ' '
8
+ let g: pymode_breakpoint_cmd = ' import pdb; pdb.set_trace() # XXX BREAKPOINT'
9
9
10
10
if g: pymode_python == ' disable'
11
11
return
@@ -18,7 +18,7 @@ from imp import find_module
18
18
for module in (' pudb' , ' ipdb' ):
19
19
try :
20
20
find_module (module)
21
- vim .command (' let g:pymode_breakpoint_template = "import %s; %s.set_trace() # XXX BREAKPOINT"' % (module, module))
21
+ vim .command (' let g:pymode_breakpoint_cmd = "import %s; %s.set_trace() # XXX BREAKPOINT"' % (module, module))
22
22
break
23
23
except ImportError:
24
24
continue
@@ -31,11 +31,11 @@ endfunction "}}}
31
31
32
32
fun ! pymode#breakpoint#operate (lnum) " {{{
33
33
let line = getline (a: lnum )
34
- if strridx (line , g: pymode_breakpoint_template ) != -1
34
+ if strridx (line , g: pymode_breakpoint_cmd ) != -1
35
35
normal dd
36
36
else
37
37
let plnum = prevnonblank (a: lnum )
38
- call append (line (' .' )-1 , repeat (' ' , indent (plnum)).g: pymode_breakpoint_template )
38
+ call append (line (' .' )-1 , repeat (' ' , indent (plnum)).g: pymode_breakpoint_cmd )
39
39
normal k
40
40
endif
41
41
You can’t perform that action at this time.
0 commit comments