diff options
-rw-r--r-- | runtime/doc/api.txt | 2 | ||||
-rw-r--r-- | test/functional/legacy/display_spec.lua | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 62afdc5830..f65ca8594c 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -411,7 +411,7 @@ use >lua extid = vim.api.nvim_buf_set_extmark(buf, ns_id, line, col_start, {end_col = col_end, hl_group = hl_group}) -- example: modify the extmark's highlight group - vim.api.nvim_buf_set_extmark(buf, ns_id, NEW_HL_GROUP, line, col_start, {end_col = col_end, hl_group = hl_group, id = extid}) + vim.api.nvim_buf_set_extmark(buf, ns_id, line, col_start, {end_col = col_end, hl_group = NEW_HL_GROUP, id = extid}) -- example: change the highlight's position vim.api.nvim_buf_set_extmark(buf, ns_id, NEW_LINE, col_start, {end_col = col_end, hl_group = NEW_HL_GROUP, id = extid}) diff --git a/test/functional/legacy/display_spec.lua b/test/functional/legacy/display_spec.lua index f59eac7674..feb2662100 100644 --- a/test/functional/legacy/display_spec.lua +++ b/test/functional/legacy/display_spec.lua @@ -202,7 +202,7 @@ describe('display', function() exec([[ set display=lastline smoothscroll scrolloff=0 call setline(1, [ - \'aaaaa'->repeat(500), + \'aaaaa'->repeat(150), \'bbbbb '->repeat(7) .. 'ccccc '->repeat(7) .. 'ddddd '->repeat(7) \]) ]]) @@ -220,7 +220,7 @@ describe('display', function() aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa| aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa| aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa| - ^aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa| + ^aaaaaaaaaaaaaaa | | ]]) -- The correct part of the last line is moved into view. |