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

Commit0500870

Browse files
committed
breakpoint: Use tabs if expandtab is false.python-mode#718
1 parent285f1f6 commit0500870

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎autoload/pymode/breakpoint.vim

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,13 @@ fun! pymode#breakpoint#operate(lnum) "{{{
3535
normal dd
3636
else
3737
let plnum=prevnonblank(a:lnum)
38-
callappend(line('.')-1,repeat('',indent(plnum)).g:pymode_breakpoint_cmd)
38+
if &expandtab
39+
let indents=repeat('',indent(plnum))
40+
else
41+
let indents=repeat("\t", plnum / &shiftwidth)
42+
endif
43+
44+
callappend(line('.')-1, indents.g:pymode_breakpoint_cmd)
3945
normalk
4046
endif
4147

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp