Do not guess settings if nomodifiable
This commit is contained in:
parent
b867ffac83
commit
1db371f776
|
@ -117,6 +117,10 @@ function! s:apply_if_ready(options) abort
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:detect() abort
|
function! s:detect() abort
|
||||||
|
if &modifiable == 0
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
let options = s:guess(getline(1, 1024))
|
let options = s:guess(getline(1, 1024))
|
||||||
if s:apply_if_ready(options)
|
if s:apply_if_ready(options)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue