From c3d21ad1bccd9a2975be73b1115213fd884eada3 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Fri, 15 Sep 2023 09:43:48 +0200 Subject: docs: small fixes Co-authored-by: Wansmer Co-authored-by: Andrew Voynov Co-authored-by: David Moberg --- src/nvim/README.md | 3 ++- src/nvim/grid_defs.h | 2 +- src/nvim/marktree.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/nvim/README.md b/src/nvim/README.md index 4029777031..b484d59cb3 100644 --- a/src/nvim/README.md +++ b/src/nvim/README.md @@ -209,7 +209,8 @@ not related to TUI rendering like so: lldb -- ./build/bin/nvim --headless --listen ~/.cache/nvim/debug-server.pipe -You can then attach to the headless process to interact with the editor like so: +While in lldb, enter `run`. You can then attach to the headless process in a +new terminal window to interact with the editor like so: ./build/bin/nvim --remote-ui --server ~/.cache/nvim/debug-server.pipe diff --git a/src/nvim/grid_defs.h b/src/nvim/grid_defs.h index 100d648263..c65c273d57 100644 --- a/src/nvim/grid_defs.h +++ b/src/nvim/grid_defs.h @@ -12,7 +12,7 @@ // Includes final NUL. at least 4*(MAX_MCO+1)+1 #define MAX_SCHAR_SIZE 32 -// if data[0] is 0xFF, then data[1..4] is a 24-bit index (in machine endianess) +// if data[0] is 0xFF, then data[1..4] is a 24-bit index (in machine endianness) // otherwise it must be a UTF-8 string of length maximum 4 (no NUL when n=4) typedef uint32_t schar_T; diff --git a/src/nvim/marktree.c b/src/nvim/marktree.c index ff82c59783..8ab9370e6c 100644 --- a/src/nvim/marktree.c +++ b/src/nvim/marktree.c @@ -852,7 +852,7 @@ static void intersect_add(Intersection *x, Intersection *y) } } -// inplace assymetric difference: x &= ~y +// inplace asymmetric difference: x &= ~y static void intersect_sub(Intersection *restrict x, Intersection *restrict y) { size_t xi = 0, yi = 0; -- cgit