We added count prefix support to motion commands in commit 59e006e56d9f893506af56a4ca114fe53b537e49 but obviously forgot to check whether the range checks in calendar_move() still work correctly. Refactor out range checks and replace them by a single check that is performed *after* the new date is computed, but before we assign the new value to the actual selected date. This ensures we won't have to bother about these again when changing/adding functionality in/to calendar_move(), while keeping performance (date_change() is pretty cheap and range violations are corner cases anyway). Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
calcurse ======== Read `INSTALL` for instructions on how to build and install calcurse. Check `TODO` for things that still need to be done. Browse the file `doc/manual.html` (or its source `doc/manual.txt`) for narrative descriptions on how to use calcurse. Package Overview ---------------- You should be reading this file in a directory called: `calcurse-x.x`, where `x.x` is the current version number. There should be two subdirectories : `src` and `doc`. Detailed documentation in HTML format can be found in the `doc` directory. Calcurse sources can be found in the `src` directory. Authors ------- * Frederic Culot (Founder, Lead Developer) * Lukas Fleischer (Developer) Contributors ------------ * RegEx support: Erik Saule * German translation: Michael Schulz, Chris M., Benjamin Moeller * Spanish translation: Jose Lopez * Dutch translation: Jeremy Roon * French translation: Erik Saule * Russian translation: Aleksey Mechonoshin Also check the `Thanks` section in the manual for a list of people who have contributed by reporting bugs, sending fixes, or suggesting improvements.
Description
Languages
C
65.7%
Shell
29.6%
Python
3.4%
M4
0.8%
Makefile
0.5%