https://github.com/vim/vim/pull/9138
(3 files)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
![]()
Merging #9138 (b1ac4b4) into master (b1b163e) will decrease coverage by
1.74%.
The diff coverage is95.55%.
@@ Coverage Diff @@ ## master #9138 +/- ## ========================================== - Coverage 90.14% 88.40% -1.75% ========================================== Files 151 150 -1 Lines 169319 167732 -1587 ========================================== - Hits 152637 148276 -4361 - Misses 16682 19456 +2774
| Flag | Coverage Δ | |
|---|---|---|
| huge-clang-none | ? |
|
| huge-gcc-none | ? |
|
| huge-gcc-testgui | 88.36% <95.55%> (-0.01%) |
⬇️ |
| huge-gcc-unittests | 2.45% <0.00%> (-0.01%) |
⬇️ |
Flags with carried forward coverage won't be shown. Click here to find out more.
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/textprop.c | 96.70% <95.55%> (-0.13%) |
⬇️ |
| src/libvterm/src/rect.h | 0.00% <0.00%> (-96.56%) |
⬇️ |
| src/libvterm/src/mouse.c | 0.00% <0.00%> (-48.28%) |
⬇️ |
| src/libvterm/src/state.c | 49.10% <0.00%> (-40.86%) |
⬇️ |
| src/libvterm/include/vterm.h | 0.00% <0.00%> (-37.50%) |
⬇️ |
| src/libvterm/src/pen.c | 49.85% <0.00%> (-34.81%) |
⬇️ |
| src/libvterm/src/keyboard.c | 54.73% <0.00%> (-33.69%) |
⬇️ |
| src/mouse.c | 58.59% <0.00%> (-30.81%) |
⬇️ |
| src/libvterm/src/encoding.c | 45.54% <0.00%> (-27.73%) |
⬇️ |
| src/libvterm/src/vterm.c | 48.57% <0.00%> (-18.89%) |
⬇️ |
| ... and 75 more |
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 b1b163e...b1ac4b4. Read the comment docs.
Thanks for working on this.
The "type" option currently only supports one type name. The request was to use a pattern. Maybe that is a bit slow (each type ID needs to be looked up to find the name to match with). An alternative would be to pass a list of type names.
Thanks for working on this.
The "type" option currently only supports one type name. The request was to use a pattern. Maybe that is a bit slow (each type ID needs to be looked up to find the name to match with). An alternative would be to pass a list of type names.
Thanks for the update. I'll leave this open for a couple of days to await any comments.
—
You are receiving this because you commented.
How do we get all text-properties of a specific buffer?
In the examples you use line('$') but the function doesn't accept a buffer number. Currently the only way to obtain the number of lines in a buffer is through getbufinfo(bufnr)[0].linecount but this is a bit heavy considering how much data getbufinfo() could return. So wouldn't it be more efficient to accept '$' directly in end_lnum?
For example: prop_list(1, {'bufnr': 4, 'end_lnum': '$', 'id': [123]}).
—
You are receiving this because you commented.
Hmm, Bram's comment didn't make it to github for some reasons. I thought emails were automatically mirrored.
I like the suggestion to add a new function getline() (or similar), since it could also be used in other places.
—
You are receiving this because you commented.
How do we get all text-properties of a specific buffer?
@yegappan pushed 4 commits.
—
You are receiving this because you are subscribed to this thread.
@puremourning commented on this pull request.
In src/textprop.c:
> - if (d == NULL) - break; - mch_memmove(&prop, text + textlen + i * sizeof(textprop_T), - sizeof(textprop_T)); - prop_fill_dict(d, &prop, buf); - list_append_dict(rettv->vval.v_list, d); + if (di->di_tv.vval.v_list == NULL) + return; + + prop_ids = get_prop_ids_from_list(di->di_tv.vval.v_list, + &prop_ids_len); + if (prop_ids == NULL) + return;
does this leak prop_types? There seem to be a few early returns that might leak one of prop_types or prop_ids. Worth double-checking ?
—
You are receiving this because you commented.
The name of the item for the list of types is "type". Now that it is a list it would be better to call this "types" or "typelist".
I think "types" is the best.
—
You are receiving this because you commented.
@puremourning commented on this pull request.
In src/textprop.c:
> - if (d == NULL) - break; - mch_memmove(&prop, text + textlen + i * sizeof(textprop_T), - sizeof(textprop_T)); - prop_fill_dict(d, &prop, buf); - list_append_dict(rettv->vval.v_list, d); + if (di->di_tv.vval.v_list == NULL) + return; + + prop_ids = get_prop_ids_from_list(di->di_tv.vval.v_list, + &prop_ids_len); + if (prop_ids == NULL) + return;does this leak prop_types? There seem to be a few early returns that might leak one of prop_types or prop_ids. Worth double-checking ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub.