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

An error occurs when commit set at the end of magit_default_sections #149

Closed
iaia opened this issue Oct 31, 2017 · 2 comments
Closed

An error occurs when commit set at the end of magit_default_sections #149

iaia opened this issue Oct 31, 2017 · 2 comments

Comments

@iaia
Copy link
Contributor

iaia commented Oct 31, 2017

Short description of the problem

An error occurs when commit is set at the end of g:magit_default_sections

Error detected while processing function magit#commit_command[24]..magit#update_buffer[20]..<SNR>19_mg_get_commit_msg:
line    3:
E684: list index out of range: 5
E15: Invalid expression: '^'.g:magit_sections[g:magit_default_sections[match(g:magit_default_sections, 'commit')+1]].'$'
Press ENTER or type command to continue

Steps to reproduce

e.g. let g:magit_default_sections = ['global_help', 'info', 'unstaged', 'staged', 'commit']

In stage mode, type CC.

Environment

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Oct 22 2017 18:11:06)

@jreybert
Copy link
Owner

jreybert commented Nov 5, 2017

Damn it, I thought this corner case would never be spotted by anyone!

Thanks for the PR.

@jreybert jreybert added this to In progress in vimagit dev board Nov 6, 2017
iaia added a commit to iaia/vimagit that referenced this issue Nov 6, 2017
@jreybert
Copy link
Owner

jreybert commented Nov 7, 2017

Thanks for the PR!

@jreybert jreybert closed this as completed Nov 7, 2017
vimagit dev board automation moved this from In progress to Done Nov 7, 2017
@jreybert jreybert added this to the Release 1.7.3 milestone Oct 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

2 participants