Skip to content

Conversation

@jparise
Copy link
Owner

@jparise jparise commented Nov 12, 2020

Vimscript evaluates the expression 0 ==# "Foo as truthy, which breaks
chaining to the base 'indentexpr' function for non-GraphQL lines.

Fix this by specifying an explicit default value (empty string).

Vimscript evaluates the expression `0 ==# "Foo` as truthy, which breaks
chaining to the base 'indentexpr' function for non-GraphQL lines.

Fix this by specifying an explicit default value (empty string).
@jparise jparise added the bug label Nov 12, 2020
@jparise jparise changed the title Improve GraphQL detection in 'indentexpr' functions Fix GraphQL detection in 'indentexpr' functions Nov 12, 2020
@jparise jparise merged commit c2fe34c into master Nov 12, 2020
@jparise jparise deleted the indentexpr-get-default branch November 12, 2020 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants