aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/api.txt
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-01-04 00:38:48 +0100
committerGitHub <noreply@github.com>2023-01-04 07:38:48 +0800
commit936e191fef9865600af211c29ea4959ffbce81dd (patch)
treede6d07e200431bf5638c581b1a5bd856e0675682 /runtime/doc/api.txt
parent5529b07316b75913188c44698aed6c0f866c5da9 (diff)
downloadrneovim-936e191fef9865600af211c29ea4959ffbce81dd.tar.gz
rneovim-936e191fef9865600af211c29ea4959ffbce81dd.tar.bz2
rneovim-936e191fef9865600af211c29ea4959ffbce81dd.zip
docs: fix typos (#21427)
Co-authored-by: Gustavo Sampaio <gbritosampaio@gmail.com> Co-authored-by: C.D. MacEachern <craig.daniel.maceachern@gmail.com> Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com> Co-authored-by: Tomas Nemec <nemi@skaut.cz>
Diffstat (limited to 'runtime/doc/api.txt')
-rw-r--r--runtime/doc/api.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index 32c7ba67a5..fcd9bd0fe5 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -728,7 +728,7 @@ nvim_echo({chunks}, {history}, {*opts}) *nvim_echo()*
• {opts} Optional parameters.
• verbose: Message was printed as a result of 'verbose'
option if Nvim was invoked with -V3log_file, the message
- will be redirected to the log_file and surpressed from
+ will be redirected to the log_file and suppressed from
direct output.
nvim_err_write({str}) *nvim_err_write()*
@@ -2549,7 +2549,7 @@ nvim_buf_get_extmarks({buffer}, {ns_id}, {start}, {end}, {opts})
-- Create new extmark at line 1, column 1.
local m1 = a.nvim_buf_set_extmark(0, ns, 0, 0, {})
-- Create new extmark at line 3, column 1.
- local m2 = a.nvim_buf_set_extmark(0, ns, 0, 2, {})
+ local m2 = a.nvim_buf_set_extmark(0, ns, 2, 0, {})
-- Get extmarks only from line 3.
local ms = a.nvim_buf_get_extmarks(0, ns, {2,0}, {2,0}, {})
-- Get all marks in this buffer + namespace.