jceb / vim-orgmode

Text outlining and task management for Vim based on Emacs' Org-Mode
http://www.vim.org/scripts/script.php?script_id=3642
Other
3.1k stars 266 forks source link

fix ctrl-c on calendar insert message causing uncaught exception #316

Closed Alexmac22347 closed 4 years ago

Alexmac22347 commented 5 years ago

I noticed that if I hit ctrl-c in the calendar picker, after getting the prompt to modify the date, I get an uncaught exception (See the gif).

before: calendar-exception(1)

after: after

I changed the code to catch the exception and return None.

Thank you.

codecov-io commented 5 years ago

Codecov Report

Merging #316 into master will not change coverage. The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #316   +/-   ##
=======================================
  Coverage   84.38%   84.38%           
=======================================
  Files          49       49           
  Lines        6794     6794           
=======================================
  Hits         5733     5733           
  Misses       1061     1061
Impacted Files Coverage Δ
ftplugin/orgmode/_vim.py 58.25% <0%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 35e9421...fa59c3e. Read the comment docs.