Commit a1b2325a authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'ph/fixMLCSuggestionsCount' into 'master'

Fix incorrect offset with multi line comment suggestions

See merge request gitlab-org/gitlab!57804
parents a92ea8ff 4b62a9bc
......@@ -260,7 +260,7 @@ export default {
:line-content="lineContent"
:can-suggest="canSuggest"
:show-suggest-popover="showSuggestPopover"
:suggestion-start-index="lines.length"
:suggestion-start-index="lines.length - 1"
@preview-markdown="showPreviewTab"
@write-markdown="showWriteTab"
@handleSuggestDismissed="() => $emit('handleSuggestDismissed')"
......
......@@ -29,7 +29,7 @@ exports[`Snippet Description Edit component rendering matches the snapshot 1`] =
>
<markdown-header-stub
linecontent=""
suggestionstartindex="0"
suggestionstartindex="-1"
/>
<div
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment