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: add undo_indent #33

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

fix: add undo_indent #33

wants to merge 1 commit into from

Conversation

e-kwsm
Copy link

@e-kwsm e-kwsm commented Dec 4, 2023

@@ -20,6 +20,8 @@ set cpo&vim
setlocal indentexpr=CMakeGetIndent(v:lnum)
setlocal indentkeys+==ENDIF(,ENDFOREACH(,ENDMACRO(,ELSE(,ELSEIF(,ENDWHILE(

let b:undo_indent = "setl inde< indk<"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAICT this was never here, so the "restore" wording is not informative. Please treat this as a new addition and revise the commit message and PR summary to explain why it is needed.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, it looks like that came from a sweeping change corresponding to "2022 April: b:undo_indent added by Doug Kearns".

Please update the commit message here accordingly.

indentexpr amd indentkeys must be reset to the global values when
closing.
@e-kwsm e-kwsm changed the title fix: restore undo_indent fix: add undo_indent Dec 4, 2023
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.

2 participants