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

Commit371eba4

Browse files
committed
merged issuepython-mode#840: fixed pymode_breakpoint deleting line if no debugger was found
1 parentdadf48a commit371eba4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

‎autoload/pymode/breakpoint.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fun! pymode#breakpoint#init() "{{{
1111

1212
fromimpimport find_module
1313

14-
for modulein ('wdb','pudb','ipdb'):
14+
for modulein ('wdb','pudb','ipdb','pdb'):
1515
try:
1616
find_module(module)
1717
vim.command('let g:pymode_breakpoint_cmd = "import %s; %s.set_trace() # XXX BREAKPOINT"'% (module, module))
@@ -25,6 +25,10 @@ EOF
2525
endfunction"}}}
2626

2727
fun!pymode#breakpoint#operate(lnum)"{{{
28+
ifg:pymode_breakpoint_cmd==''
29+
echoerr("g:pymode_breakpoint_cmd is empty")
30+
return-1
31+
endif
2832
letline=getline(a:lnum)
2933
ifstrridx(line,g:pymode_breakpoint_cmd)!=-1
3034
normal dd

‎tests/test_bash/test_folding.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#! /bin/bash
22

3+
# Note: a solution with unix 'timeout' program was tried but it was unsuccessful. The problem with folding 4 is that in the case of a crash one expects the folding to just stay in an infinite loop, thus never existing with error. An improvement is suggested to this case.
4+
35
# Source file.
46
set +e
57
source ./test_helpers_bash/test_prepare_between_tests.sh

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp