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 increasing anzu information in mode-line issue(#13) #14

Merged
merged 1 commit into from
Jan 16, 2014

Conversation

syohex
Copy link
Contributor

@syohex syohex commented Jan 16, 2014

anzu.el assumes anzu information is first element of mode-line-format.
anzu.el decides there is no anzu information if first element of
mode-line-format is not anzu information. But this is sometimes wrong.

If some element is consed mode-line-format during anzu information showing,
anzu.el mistakes that there is no anzu information and cons anzu information
again to mode-line-format. This causes increasing anzu information.

So I fixed anzu.el checks whether there is anzu information in mode-line-format
by 'member' function and remove anzu information from mode-line-format by
'delete' function.

Cc: #13

anzu.el assumes anzu information is first element of mode-line-format.
anzu.el decides there is no anzu information if first element of
mode-line-format is not anzu information. But this is sometimes wrong.

If some element is consed mode-line-format during anzu information showing,
anzu.el mistakes that there is no anzu information and cons anzu information
again to mode-line-format. This causes increasing anzu information.

So I fixed anzu.el checks whether there is anzu information in mode-line-format
by 'member' function and remove anzu information from mode-line-format by
'delete' function.
syohex added a commit that referenced this pull request Jan 16, 2014
Fix increasing anzu information in mode-line issue(#13)
@syohex syohex merged commit 3a7fcf2 into master Jan 16, 2014
@syohex syohex deleted the fix-increasing-anzuinfo-issue branch January 16, 2014 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant