Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
neovim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
importd
neovim
Commits
215244f7
Unverified
Commit
215244f7
authored
1 year ago
by
zeertzjq
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
fix(extmarks): missing "spell" and "conceal" in details (#27116)
parent
3f188bc5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/nvim/decoration.c
+11
-11
11 additions, 11 deletions
src/nvim/decoration.c
test/functional/api/extmark_spec.lua
+34
-0
34 additions, 0 deletions
test/functional/api/extmark_spec.lua
with
45 additions
and
11 deletions
src/nvim/decoration.c
+
11
−
11
View file @
215244f7
...
...
@@ -975,6 +975,9 @@ void decor_to_dict_legacy(Dictionary *dict, DecorInline decor, bool hl_name)
if
(
sh_hl
.
hl_id
)
{
PUT
(
*
dict
,
"hl_group"
,
hl_group_name
(
sh_hl
.
hl_id
,
hl_name
));
PUT
(
*
dict
,
"hl_eol"
,
BOOLEAN_OBJ
(
sh_hl
.
flags
&
kSHHlEol
));
priority
=
sh_hl
.
priority
;
}
if
(
sh_hl
.
flags
&
kSHConceal
)
{
char
buf
[
MAX_SCHAR_SIZE
];
schar_get
(
buf
,
sh_hl
.
text
[
0
]);
...
...
@@ -987,9 +990,6 @@ void decor_to_dict_legacy(Dictionary *dict, DecorInline decor, bool hl_name)
PUT
(
*
dict
,
"spell"
,
BOOLEAN_OBJ
(
false
));
}
priority
=
sh_hl
.
priority
;
}
if
(
sh_hl
.
flags
&
kSHUIWatched
)
{
PUT
(
*
dict
,
"ui_watched"
,
BOOLEAN_OBJ
(
true
));
}
...
...
This diff is collapsed.
Click to expand it.
test/functional/api/extmark_spec.lua
+
34
−
0
View file @
215244f7
...
...
@@ -1639,6 +1639,40 @@ describe('API/extmarks', function()
right_gravity
=
true
,
},
},
get_extmark_by_id
(
ns
,
marks
[
3
],
{
details
=
true
}))
set_extmark
(
ns
,
marks
[
4
],
0
,
0
,
{
end_col
=
1
,
conceal
=
'a'
,
spell
=
true
,
})
eq
({
0
,
0
,
{
conceal
=
'a'
,
end_col
=
1
,
end_right_gravity
=
false
,
end_row
=
0
,
ns_id
=
1
,
right_gravity
=
true
,
spell
=
true
,
},
},
get_extmark_by_id
(
ns
,
marks
[
4
],
{
details
=
true
}))
set_extmark
(
ns
,
marks
[
5
],
0
,
0
,
{
end_col
=
1
,
spell
=
false
,
})
eq
({
0
,
0
,
{
end_col
=
1
,
end_right_gravity
=
false
,
end_row
=
0
,
ns_id
=
1
,
right_gravity
=
true
,
spell
=
false
,
},
},
get_extmark_by_id
(
ns
,
marks
[
5
],
{
details
=
true
}))
api
.
nvim_buf_clear_namespace
(
0
,
ns
,
0
,
-
1
)
-- legacy sign mark includes sign name
command
(
'sign define sign1 text=s1 texthl=Title linehl=LineNR numhl=Normal culhl=CursorLine'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment