Skip to content

Commit 0500870

Browse files
committed
breakpoint: Use tabs if expandtab is false. python-mode#718
1 parent 285f1f6 commit 0500870

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-
call append(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+
call append(line('.')-1, indents.g:pymode_breakpoint_cmd)
3945
normal k
4046
endif
4147

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy