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

Fix indentation when inserting new task and smartindent is on #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rjframe
Copy link

@rjframe rjframe commented Apr 20, 2021

vim-tasks' behavior when inserting a new task depends on whether smartindent is on (autoindent doesn't seem to have any effect though, which seemed odd to me). This will temporarily disable smartindent in the current buffer if necessary, then reset it after inserting the new task.

This fixes the second part of issue #13. I also fixed the spelling of a variable name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant