Skip to content

Commit f1846dd

Browse files
committed
if g:pymode_breakpoint_cmd is empty, skip pymode#breakpoint#operate
1 parent dadf48a commit f1846dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autoload/pymode/breakpoint.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ EOF
2525
endfunction "}}}
2626

2727
fun! pymode#breakpoint#operate(lnum) "{{{
28+
if strlen(g:pymode_breakpoint_cmd) == 0
29+
echoerr("g:pymode_breakpoint_cmd is empty string")
30+
return
2831
let line = getline(a:lnum)
2932
if strridx(line, g:pymode_breakpoint_cmd) != -1
3033
normal dd

0 commit comments

Comments
 (0)