summaryrefslogtreecommitdiff
path: root/src/time.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.4229: possible crash when invoking timer callback failsv8.2.4229Bram Moolenaar2022-01-271-0/+8
| | | | | | Problem: Possible crash when invoking timer callback fails. Solution: Initialize the typval. Give an error for an empty callback. (closes #9636)
* patch 8.2.4199: MS-Windows: Support for MSVC 2003 is not usefulv8.2.4199K.Takata2022-01-241-17/+3
| | | | | Problem: MS-Windows: Support for MSVC 2003 is not useful. Solution: Remove the exceptions for MSVC 2003. (Ken Takata, closes #9616)
* patch 8.2.4155: translating strftime() argument results in check errorv8.2.4155Bram Moolenaar2022-01-201-0/+1
| | | | | Problem: Translating strftime() argument results in check error. Solution: Add gettext comment.
* patch 8.2.4035: timer triggered at the debug prompt may cause troublev8.2.4035Bram Moolenaar2022-01-071-2/+3
| | | | | Problem: Timer triggered at the debug prompt may cause trouble. Solution: Do not trigger any timer at the debug prompt. (closes #9481)
* patch 8.2.3961: error messages are spread outv8.2.3961Bram Moolenaar2021-12-311-5/+5
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3768: timer_info() has the wrong repeat value in a timer callbackv8.2.3768Bram Moolenaar2021-12-091-1/+2
| | | | | | Problem: timer_info() has the wrong repeat value in a timer callback. Solution: Do not add one to the repeat value when in the callback. (closes #9294)
* patch 8.2.3763: when editing the cmdline a callback may cause a scroll upv8.2.3763Bram Moolenaar2021-12-091-1/+1
| | | | | | | Problem: When editing the command line a FocusLost callback may cause the screen to scroll up. Solution: Do not redraw at the last line but at the same place where the command line was before. (closes #9295)
* patch 8.2.3341: Vim9: function call aborted despite try/catchv8.2.3341Bram Moolenaar2021-08-141-2/+2
| | | | | Problem: Vim9: function call aborted despite try/catch. (Naohiro Ono) Solution: Ignore error caught by try/catch. (closes #8755)
* patch 8.2.3229: Vim9: runtime and compile time type checks are not the samev8.2.3229Yegappan Lakshmanan2021-07-271-0/+24
| | | | | | Problem: Vim9: runtime and compile time type checks are not the same. Solution: Add more runtime type checks for builtin functions. (Yegappan Lakshmanan, closes #8646)
* patch 8.2.3211: Vim9: argument types are not checked at compile timev8.2.3211Yegappan Lakshmanan2021-07-241-1/+8
| | | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks. Fix type check for matchaddpos(). (Yegappan Lakshmanan, closes #8619)
* patch 8.2.3190: error messages are spread outv8.2.3190Bram Moolenaar2021-07-201-3/+3
| | | | | Problem: Error messages are spread out. Solution: Move error messages to errors.h and give them a clear name.
* patch 8.2.3188: Vim9: argument types are not checked at compile timev8.2.3188Yegappan Lakshmanan2021-07-201-3/+7
| | | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks, also at runtime. (Yegappan Lakshmanan, closes #8587)
* patch 8.2.3162: Vim9: argument types are not checked at compile timev8.2.3162Yegappan Lakshmanan2021-07-151-11/+16
| | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add more type checks. (Yegappan Lakshmanan, closes #8560)
* patch 8.2.3161: Vim9: no error when reltime() has invalid argumentsv8.2.3161Bram Moolenaar2021-07-141-0/+12
| | | | | Problem: Vim9: no error when reltime() has invalid arguments. Solution: Add an error. (closes #8562)
* patch 8.2.2922: computing array length is done in various waysv8.2.2922K.Takata2021-06-021-2/+1
| | | | | Problem: Computing array length is done in various ways. Solution: Use ARRAY_LENGTH everywhere. (Ken Takata, closes #8305)
* patch 8.2.2894: MS-Windows: using enc_locale() for strftime() might not workv8.2.2894K.Takata2021-05-281-1/+15
| | | | | Problem: MS-Windows: using enc_locale() for strftime() might not work. Solution: Use wcsftime(). (Ken Takata, closes #8271)
* patch 8.2.2380: Vim9: occasional crash when using try/catch and a timerv8.2.2380Bram Moolenaar2021-01-201-0/+3
| | | | | | Problem: Vim9: occasional crash when using try/catch and a timer. Solution: Save and restore "need_rethrow" when invoking a timer callback. (closes #7708)
* patch 8.2.1961: various comments can be improvedv8.2.1961Bram Moolenaar2020-11-051-0/+2
| | | | | Problem: Various comments can be improved. Solution: Various comment adjustments.
* patch 8.2.1628: Vim9: cannot pass "true" to timer_paused()v8.2.1628Bram Moolenaar2020-09-061-1/+1
| | | | | Problem: Vim9: cannot pass "true" to timer_paused(). Solution: Use tv_get_bool(). (closes #6891)
* patch 8.2.0949: strptime() does not use DSTv8.2.0949Bram Moolenaar2020-06-101-0/+1
| | | | | Problem: Strptime() does not use DST. Solution: Set the tm_isdst field to -1. (Tomáš Janoušek, closes #6230)
* patch 8.2.0559: clearing a struct is verbosev8.2.0559Bram Moolenaar2020-04-121-1/+1
| | | | | Problem: Clearing a struct is verbose. Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
* patch 8.2.0523: loops are repeatedv8.2.0523Bram Moolenaar2020-04-061-2/+5
| | | | | Problem: Loops are repeated. Solution: Use FOR_ALL_ macros. (Yegappan Lakshmanan, closes #5882)
* patch 8.2.0256: time and timer related code is spread outv8.2.0256Bram Moolenaar2020-02-141-0/+1041
Problem: Time and timer related code is spread out. Solution: Move time and timer related code to a new file. (Yegappan Lakshmanan, closes #5604)