Commit Graph

5655 Commits (master)

Author SHA1 Message Date
nick black 0e389967e5
sixel: free meta on error paths 2 months ago
nick black adc7313a4d
tabbed: eliminate double-free on error path 2 months ago
nick black 34b6cc12ec
ncplane_resize: factor out ncplane_resize_internal_check() 2 months ago
nick black 97508498db
init_lang: remove dead code 2 months ago
nick black 1586fe4c56
tfman: eliminate unnecessary write 2 months ago
nick black 83a0ca48bb
tfman: always initialize success 2 months ago
nick black 1995749c4b
eliminate clang-tidy memory leak bitchery 2 months ago
nick black 87782f340a
query_rgb: tigetflag() returns 1 on success 3 months ago
nick black 441d66a063
check LIBAVUTIL_VERSION_MAJOR against 59 for pkt_duration 3 months ago
nick black bed402adf9
ffmpeg: use pkt_duration when it's available #2688 3 months ago
nick black 9d4c9e0083
ffmpeg: replace deprecated pkt_duration with duration #2688 3 months ago
nick black cb1244d3d4
ffmpeg: remove call to deprecated avcodec_close() 3 months ago
Nat! 2e2cc8121c * size_t overflow check for cell array
* use calloc to gain mucho speed for huge dimensions
3 months ago
nick black fdd33449f1
ncplane_new_internal: don't check for negative rows/cols, use unsigned spec #2763 3 months ago
nick black d0ae404152
channels_blend(): bow to clang14 -Wbitwise-instead-of-logical overlords 5 months ago
nick black d3d7a90495
ffmpeg: remove unused frame counter 5 months ago
nick black c19a715773
demo: use full zero initializers (closes #2739) 5 months ago
barracuda156 e8b4c7958a inttypes.h needs __STDC_FORMAT_MACROS defined 10 months ago
Cameron Tenny 04470f9532 Add dependency on libavdevice when building with ffmpeg support, register in ffmpeg_init 1 year ago
Dan Bungert 8f972a3e0e metric: fix test on armhf/glibc 2.37
In the metric test is a call to ncnmetric, which eventually calls
snprintf.  Along the way is a size that is much larger than the actual
bufsize, but it shouldn't matter as the buffer size exceeds what we
print (or at least what is expected).

In testing with glibc 2.37 on armhf on Ubuntu Lunar, I found that these
metric tests can fail with some unexpected truncation of the values.

For example, in the following check,
```
    impericize_ncmetric(0, 1, buf, 0, 1000, '\0');
    CHECK(!strcmp("0.00", buf));
```
buf would actually be "0.0".

Using a more realistic buffer size produces a working result.
1 year ago
Jeroen Domburg 4332f8a249 notcurses-input: also show effective text if different from ID/utf8 1 year ago
Jeroen Domburg 243bdc31ee Automaton creation: do not try to recurse into every single digit on numeric value when it is not needed 1 year ago
Jeroen Domburg b0f19f9f29 Do not be lazy, make amount of max text code points into a define 1 year ago
Jeroen Domburg 3512f9e812 Fix misunderstanding in Kitty kbd proto docs 1 year ago
Jeroen Domburg d8cb625b9a Add 'effective utf8' field to ncinput struct. This field will contain the utf8 emitted by a key with all modifiers taken into account. 1 year ago
nick black eac79ee680
automaton: s/thought/though/g 1 year ago
nick black 90135203e8
debug: loglevel ought be ncloglevel_e 1 year ago
nick black d29f364f62
ncvisual_create: error-check malloc #2691 1 year ago
nick black 09f7b717ac
[ncwidth] error-check printfs #2691 1 year ago
nick black 5c34ff4735 [tests] add FamilyAbove for infinite loop found by drewt #2687 1 year ago
Drew Thoreson f6d396e8b4 Fix infinite loop in ncplane_move_family_*
Fix bugs that occur when moving a plane-family up in the z-order with
ncplane_move_family_above, or down in the z-order with
ncplane_move_family_below.
1 year ago
nick black 7651cde998 workarounds for busted doctest 2.4.9 #2673 2 years ago
Christian Parpart 9f0a7bf095 Fixes DECSDM interpretation for Contour. 2 years ago
Tim Gates ab8590d7b3 docs: Fix a few typos
There are small typos in:
- src/demo/fission.c
- src/tests/wide.cpp

Fixes:
- Should read `obliterated` rather than `oblitrated`.
- Should read `range` rather than `reange`.
2 years ago
Christian Parpart d76316cc60 Add XT{PUSH,POP}COLORS support to Contour heuristic. 2 years ago
Dmitry Atamanov 7eb51cb456 Add support g/Home keys to tfman 2 years ago
Daniel Davis 142d3ab4e9 Fix tfman help msg version flag
Should be uppercase
2 years ago
nick black 2316c7e646
deconstify functions which write to pool
several functions appear to have recently been marked
as accepting a const ncplane, despite potentially writing
into that plane's egcpool. in such cases, the ncplane
argument cannot be marked constant, as indicated by
compiler warnings. all have been rectified.
2 years ago
joseLuís c3ace47939 use const references in several fns; fix #2658 2 years ago
nick black c8882178ed terminate potential escape on incomplete buffer #2647 2 years ago
nick black dcf3e10965
[sixel] drop unused auxvec_idx 2 years ago
Christian Parpart d046b2c406 Adds ucurl heuristic to Contour terminal, similarily to how it's done on other terminals. 2 years ago
Nick Black ec1ef7200b use ffmpeg-free-compatible video in all tests #2631 2 years ago
nick black 8cd54b7932
[sixel] fix unit tests on big-endian machines 2 years ago
nick black 066dde8e33
[scroll_down] kill naked diagnostic 2 years ago
nick black 15f0ac2522
[render] scroll after display for sensible scrollback #2557 2 years ago
nick black 7db7b0150a
[enqueue_to_workers] only increment wq->writeto when we write #2627 2 years ago
nick black a35d42b0e4 ncplane_scrollup: call notcurses_render() when appropriate #2557 2 years ago
nick black 184666170c [ncplane_put] hold off on render until we've written the output #2414 2 years ago
nick black ad76543ef1 [scrolling] call notcurses_render() from scroll_down() #2414 2 years ago