Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions plugin/linuxsty.vim
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ augroup linuxsty
augroup END

function s:LinuxConfigure()
let apply_style = 0
let b:apply_linux_style = 0

if exists("g:linuxsty_patterns")
let path = expand('%:p')
for p in g:linuxsty_patterns
if path =~ p
let apply_style = 1
let b:apply_linux_style = 1
break
endif
endfor
else
let apply_style = 1
let b:apply_linux_style = 1
endif

if apply_style
if b:apply_linux_style
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact, may I ask you to add a single line let b:linuxsty_applied = 1 in this statement? So that we change only one line and keep consistent with an implicit linuxsty namespace here.

A small addition in the README file to mention this new buffer variable would be a must.
If you tell me that it works as you expect, I'll happily merge this. Thanks!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added extra commit for the readme file and changed it to b:linuxsty_applied
I did see no problem popping up and its working fine.

call s:LinuxCodingStyle()
endif
endfunction
Expand Down