Open seagle0128 opened 2 years ago
What happens if you press g
a third time?
What happens if you press
g
a third time?
Only one TODOs section is displayed.
To be clear, I mean the issue appears while double pressing g
quickly. Otherwise the behavior is normal. I think it may be related to the async operations?
Yes, there is nothing to stop the async process from being run multiple times at once and thereby inserting multiple sections. AFAIK it does no harm and would probably not be worth writing code to prevent this.
I agree it does no harm, but I'd like suggest to check before inserting the TODO section if possible.
It could be done, but it's not a priority for me, because this falls into the "well, don't do that" category. :) Patches welcome.
See also: #145
While pressing
g
twice, two Todos sections are displayed in magit-status buffer as below.