Narrow Region buffer filetype is different from the original one #10

Closed
xuhdev opened this Issue Jul 12, 2012 · 4 comments

Projects

None yet

2 participants

@xuhdev
xuhdev commented Jul 12, 2012

The narrow region buffer filetype is always detected by Vim, not the same with the original buffer.

Also see this question.

Thank you!

@chrisbra
Owner

On Thu, July 12, 2012 20:23, Hong Xu wrote:

The narrow region buffer filetype is always detected by Vim, not the same
with the original buffer.

I don't understand the problem.

Also see this
question
.

I answered that question.

regards,
Christian

@xuhdev
xuhdev commented Jul 13, 2012

For example, for the following ini file:

[a]
key1 = value1
key2 = value2

Select line 2 and 3, type :NarrowRegion, and the new buffer won't be detected as ini file. The syntax highlighting thus won't be corrected done.

@chrisbra
Owner

Hi Hong!

On Fr, 13 Jul 2012, Hong Xu wrote:

For example, for the following ini file:

[a]
key1 = value1
key2 = value2

Select line 2 and 3, type :NarrowRegion, and the new buffer won't be detected as ini file. The syntax highlighting thus won't be corrected done.

This works as expected. I have no clue, why it shouldn't work for you.

regards,

Christian

Ich wähle meine Freunde nach ihrem guten Aussehen, meine Bekannten
nach ihrem Charakter und meine Feinde nach ihrem Verstand.
-- Oscar Wilde

@chrisbra chrisbra added a commit that closed this issue Jul 14, 2012
@chrisbra Fix #10
The filetype was not always correctly set up. (Reported by Hong Xu in
#10, thanks!)
c48e925
@chrisbra chrisbra closed this in c48e925 Jul 14, 2012
@chrisbra
Owner

Hi Hong!

On Fr, 13 Jul 2012, Hong Xu wrote:

For example, for the following ini file:

[a]
key1 = value1
key2 = value2

Ah, I found the problem. It is fixed now. Thanks for the feedback.

regards,

Christian

Wo man arbeitet, da ist genug; wo man aber mit Worten umgeht, da ist
Mangel.
-- Salomo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment