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

Commit6b60912

Browse files
committed
The errors even if forced is only shown on python files.
1 parentd83b9e0 commit6b60912

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

‎autoload/pymode.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ fun! pymode#PlaceSigns() "{{{
5757
sign unplace*
5858

5959
if!pymode#Default("g:pymode_lint_signs_always_visible",0)||g:pymode_lint_signs_always_visible
60-
" Show the sign's ruller if asked for, even it there's no error to show
61-
executeprintf('silent! sign place 1 line=1 name=__dummy__ file=%s',expand("%:p"))
60+
callRopeShowSignsRulerIfNeeded()
6261
endif
6362

6463
for iteminfilter(getqflist(),'v:val.bufnr != ""')
6564
executeprintf('silent! sign place 1 line=%d name=%s buffer=%d', item.lnum, item.type, item.bufnr)
6665
endfor
66+
6767
endif
6868
endfunction"}}}
6969

‎plugin/pymode.vim

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ if !pymode#Default("g:pymode_lint", 1) || g:pymode_lint
116116
if!pymode#Default("g:pymode_lint_signs_always_visible",0)||g:pymode_lint_signs_always_visible
117117
" Show the sign's ruller if asked for, even it there's no error to show
118118
signdefine __dummy__
119-
autocmdBufRead,BufNew*executeprintf('silent! sign place 1 line=1 name=__dummy__ file=%s',expand("%:p"))
119+
autocmdBufRead,BufNew*callRopeShowSignsRulerIfNeeded()
120120
endif
121121

122122
endif
@@ -276,6 +276,13 @@ if !pymode#Default("g:pymode_rope", 1) || g:pymode_rope
276276
endif
277277
endfunction"}}}
278278

279+
fun!RopeShowSignsRulerIfNeeded()"{{{
280+
if &ft=='python'
281+
executeprintf('silent! sign place 1 line=1 name=__dummy__ file=%s',expand("%:p"))
282+
endif
283+
endfunction"}}}
284+
285+
279286
" Rope menu
280287
menu<silent> Rope.Autoimport :RopeAutoImport<CR>
281288
menu<silent> Rope.ChangeSignature :RopeChangeSignature<CR>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp