Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolves #38 - always set autoindent #39

Merged
merged 1 commit into from
May 7, 2018

Conversation

SidOfc
Copy link
Owner

@SidOfc SidOfc commented May 7, 2018

This small patch fixes #38.

Vim does not have autoindent enabled by default, from :h autoindent:

			*'autoindent'* *'ai'* *'noautoindent'* *'noai'*
'autoindent' 'ai'	boolean	(default off)

The same documentation in Nvim :h autoindent:

			*'autoindent'* *'ai'* *'noautoindent'* *'noai'*
'autoindent' 'ai'	boolean	(default on)

The tests kept working because they assumed &formatoptions to be 1 by setting it before the tests and restoring it afterwards.

@SidOfc SidOfc self-assigned this May 7, 2018
@SidOfc SidOfc merged commit 4c76172 into master May 7, 2018
@SidOfc SidOfc deleted the patch/always-setlocal-autoindent branch May 7, 2018 18:31
@SidOfc SidOfc added the bug:fix Submitting patches for existing functionality. label May 8, 2018
@SidOfc SidOfc added this to the v1.6.0 milestone May 13, 2018
@SidOfc SidOfc added bug:report Something does not work as intended / expected. and removed bug:fix Submitting patches for existing functionality. labels May 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:report Something does not work as intended / expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto Indent of List Items not working
1 participant