File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ fun! pymode#breakpoint#init() "{{{
44 return
55 endif
66
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'
99
1010 if g: pymode_python == ' disable'
1111 return
@@ -18,7 +18,7 @@ from imp import find_module
1818for module in (' pudb' , ' ipdb' ):
1919 try :
2020 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))
2222 break
2323 except ImportError:
2424 continue
@@ -31,11 +31,11 @@ endfunction "}}}
3131
3232fun ! pymode#breakpoint#operate (lnum) " {{{
3333 let line = getline (a: lnum )
34- if strridx (line , g: pymode_breakpoint_template ) != -1
34+ if strridx (line , g: pymode_breakpoint_cmd ) != -1
3535 normal dd
3636 else
3737 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 )
3939 normal k
4040 endif
4141
You can’t perform that action at this time.
0 commit comments