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

report() *after* toggling an option and redrawing the view #111

Closed
wants to merge 2 commits into from

Conversation

tsibley
Copy link
Contributor

@tsibley tsibley commented Jan 3, 2013

Fixes a bug where the report() of a toggle_option() call can be immediately hidden by a view redraw/reload. This primarily annoyed me when toggling diff whitespace behaviour, as I often lost track of which of the four states I was in.

This appears to be no longer necessary, and a hold over from when
updates were more verbose at the start of and during processing and
needed to be cleared when finished (refer to f97f401).

More importantly, the call to report_clear() when the view is done
updating can hide status messages from the beginning of the update which
should remain visible past the end (until some other action clears the
status line).
This ensures that the report is remains visible in all cases, rather
than immediately being cleared in some cases.  In particular, toggling
the diff whitespace behaviour (with W) no longer leaves you unsure of
the current state.
@jonas
Copy link
Owner

jonas commented Feb 18, 2013

Thanks for finally fixing this. I made a few changes to keep the code closer to what was already there. Also, string_copy() requires a 'static' string (that sizeof() will work on), which it was not the case for "Enabling"/"Disabling" an option.

@jonas jonas closed this Feb 18, 2013
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