itchyny / calendar.vim

A calendar application for Vim
MIT License
1.97k stars 73 forks source link

Some events taking place in 2 months not displayed in the later month #48

Closed SuperFluffy closed 10 years ago

SuperFluffy commented 10 years ago

When I create events with certain start dates in one month and end dates in the next, the event “bar” is not displayed in the later month.

This seems to occur only for dates, which do not start in the last week/line of the start month. If the start date is in the last week, everything is fine.

I have created two events with start dates Oct 23 and 30, respectively, which both end on Nov 14, here are the items: { 'items': [ {'id': '201407221440380001', 'summary': 'random 1', 'end': {'date': '2014-11-15'}, 'start': {'date': '2014-10-30'}}, {'id': '201407221440510002', 'summary': 'random 2', 'end': {'date': '2014-11-15'}, 'start': {'date': '2014-10-23'}} ] }

And here are two screenshots showing that event random 1 (start date last week) is displayed properly next month, and that event random 2 is not displayed at all (or even hinted at). If you remove the functioning event random 2, the calendar for November will be empty.

start-month

end-month

itchyny commented 10 years ago

Yes, it is intended. If we want to show a long event which starts in the past month, we have to check all the events in the past. It is a heavy task. Currently, it checks only events that starts at the day, which is to be drawn in the screen, that is, the last week of the last month.