aboutsummaryrefslogtreecommitdiff
path: root/misc.h (follow)
Commit message (Collapse)AuthorAgeLines
* replace gettimeofday with clock_gettimePranjal Kole2022-01-15-0/+3
| | | | | | | | | | | | | POSIX.1-2008 has marked gettimeofday(2) as obsolete, recommending the use of clock_gettime(2) instead. CLOCK_MONOTONIC has been used instead of CLOCK_REALTIME because it is unaffected by manual changes in the system clock. This makes it better for our purposes, namely, measuring the difference between two points in time. tv_sec has been casted to long in most places since POSIX does not define the actual type of time_t.
* config: add ‘[default].word-delimiters’Daniel Eklöf2020-10-09-1/+1
| | | | | | | | | | This option lets the user configure which characters act as word delimiters when selecting text. This affects both “double clicking”, and ‘ctrl-w’ in scrollback search mode. Closes #156
* selection: break out isword() to a new fileDaniel Eklöf2019-12-03-0/+6