Skip to content

Commit bc77b53

Browse files
committed
bugfix for inputing date with calendar plugin
1 parent 93763d2 commit bc77b53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ftplugin/org.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ for p in vim.eval("&runtimepath").split(','):
115115
from orgmode._vim import ORGMODE, insert_at_cursor, get_user_input, date_to_str
116116
ORGMODE.start()
117117

118+
from Date import Date
118119
import datetime
119120
EOF
120121

@@ -152,7 +153,6 @@ fun CalendarAction(day, month, year, week, dir)
152153
let msg = printf("Inserting %s | Modify date", g:org_timestamp)
153154
exe s:py_version . "modifier = get_user_input('" . msg . "')"
154155
" change date according to user input
155-
exe s:py_version . "print modifier"
156156
exe s:py_version . "newdate = Date._modify_time(selected_date, modifier)"
157157
exe s:py_version . "newdate = date_to_str(newdate)"
158158
" close Calendar

0 commit comments

Comments
 (0)