diff options
-rw-r--r-- | BUILD.md | 4 | ||||
-rw-r--r-- | runtime/doc/lua.txt | 2 | ||||
-rw-r--r-- | runtime/doc/news.txt | 2 | ||||
-rw-r--r-- | runtime/doc/pi_netrw.txt | 2 | ||||
-rw-r--r-- | runtime/doc/quickfix.txt | 2 | ||||
-rw-r--r-- | runtime/doc/treesitter.txt | 2 | ||||
-rw-r--r-- | runtime/doc/ui.txt | 6 | ||||
-rw-r--r-- | runtime/lua/vim/_editor.lua | 2 | ||||
-rw-r--r-- | runtime/lua/vim/treesitter.lua | 2 | ||||
-rw-r--r-- | src/nvim/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/nvim/option.c | 2 | ||||
-rw-r--r-- | test/README.md | 2 | ||||
-rw-r--r-- | test/old/testdir/test_normal.vim | 2 | ||||
-rw-r--r-- | test/unit/mbyte_spec.lua | 2 | ||||
-rw-r--r-- | test/unit/termkey_spec.lua | 2 |
15 files changed, 17 insertions, 18 deletions
@@ -12,7 +12,6 @@ - To build on Windows, see the [Building on Windows](#building-on-windows) section. _MSVC (Visual Studio) is recommended._ 4. `sudo make install` - Default install location is `/usr/local` - - On Debian/Ubuntu, instead of installing files directly with `sudo make install`, you can run `cd build && cpack -G DEB && sudo dpkg -i nvim-linux64.deb` to build DEB-package and install it. This should help ensuring the clean removal of installed files. **Notes**: - From the repository's root directory, running `make` will download and build all the needed dependencies and put the `nvim` executable in `build/bin`. @@ -284,7 +283,8 @@ General requirements (see [#1469](https://github.com/neovim/neovim/issues/1469#i - Clang or GCC version 4.9+ - CMake version 3.16+, built with TLS/SSL support - - Optional: Get the latest CMake from an [installer](https://github.com/Kitware/CMake/releases) or the [Python package](https://pypi.org/project/cmake/) (`pip install cmake`) + - Optional: Get the latest CMake from https://cmake.org/download/ + - Provides a shell script which works on most Linux systems. After running it, ensure the resulting `cmake` binary is in your $PATH so the the Nvim build will find it. Platform-specific requirements are listed below. diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index ef6f2de95f..29b35d69a0 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -1709,7 +1709,7 @@ vim.paste({lines}, {phase}) *vim.paste()* -- Scrub ANSI color codes from paste input. lines[i] = line:gsub('\27%[[0-9;mK]+', '') end - overridden(lines, phase) + return overridden(lines, phase) end end)(vim.paste) < diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index 789f895b46..11e0129f52 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -223,7 +223,7 @@ CHANGED FEATURES *news-changed* These existing features changed their behavior. -• 'scrollbind' now works properly with buffers that contain virutal lines. +• 'scrollbind' now works properly with buffers that contain virtual lines. Scrollbind works by aligning to a target top line of each window in a tab page. Previously this was done by calculating the difference between the old diff --git a/runtime/doc/pi_netrw.txt b/runtime/doc/pi_netrw.txt index 81acd9cf7e..0652fb27e7 100644 --- a/runtime/doc/pi_netrw.txt +++ b/runtime/doc/pi_netrw.txt @@ -3858,7 +3858,7 @@ netrw: netrw-safe guioptions Nov 15, 2021 * removed netrw_localrm and netrw_localrmdir references - Aug 18, 2022 * (Miguel Barro) improving compatability with + Aug 18, 2022 * (Miguel Barro) improving compatibility with powershell v171: Oct 09, 2020 * included code in s:NetrwOptionsSafe() to allow |'bh'| to be set to delete when diff --git a/runtime/doc/quickfix.txt b/runtime/doc/quickfix.txt index e364e7cba6..f0158dff93 100644 --- a/runtime/doc/quickfix.txt +++ b/runtime/doc/quickfix.txt @@ -1310,7 +1310,7 @@ make, say :make html or :make pdf. Additional arguments can be passed to groff by setting them in `b:groff_compiler_args` or `g:groff_compiler_args`. The `language` argument passed to groff is set using 'spelllang'; it can be overridden by setting -`b:groff_compiler_lang`. The default enconding is `UTF-8` and can be changed +`b:groff_compiler_lang`. The default encoding is `UTF-8` and can be changed by setting `b:groff_compiler_encoding` or `g:groff_compiler_encoding`. PANDOC *quickfix-pandoc* *compiler-pandoc* diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt index 21accda2a5..da2e8db8c9 100644 --- a/runtime/doc/treesitter.txt +++ b/runtime/doc/treesitter.txt @@ -757,7 +757,7 @@ get_captures_at_pos({bufnr}, {row}, {col}) • {col} (`integer`) Position column Return: ~ - (`{capture: string, lang: string, metadata: table}[]`) + (`{capture: string, lang: string, metadata: vim.treesitter.query.TSMetadata}[]`) get_node({opts}) *vim.treesitter.get_node()* Returns the smallest named node at the given position diff --git a/runtime/doc/ui.txt b/runtime/doc/ui.txt index 42dfcd2fe7..d37cdfb9df 100644 --- a/runtime/doc/ui.txt +++ b/runtime/doc/ui.txt @@ -398,8 +398,8 @@ numerical highlight ids to the actual attributes. `grid` will not be used anymore and the UI can free any data associated with it. -["grid_cursor_goto", grid, row, column] ~ - Makes `grid` the current grid and `row, column` the cursor position on this +["grid_cursor_goto", grid, row, col] ~ + Makes `grid` the current grid and `row, col` the cursor position on this grid. This event will be sent at most once in a `redraw` batch and indicates the visible cursor position. @@ -610,7 +610,7 @@ tabs. size). If the window was previously hidden, it should now be shown again. -["win_float_pos", grid, win, anchor, anchor_grid, anchor_row, anchor_col, focusable] ~ +["win_float_pos", grid, win, anchor, anchor_grid, anchor_row, anchor_col, focusable, zindex] ~ Display or reconfigure floating window `win`. The window should be displayed above another grid `anchor_grid` at the specified position `anchor_row` and `anchor_col`. For the meaning of `anchor` and more diff --git a/runtime/lua/vim/_editor.lua b/runtime/lua/vim/_editor.lua index cb864bd974..bdca97cfb8 100644 --- a/runtime/lua/vim/_editor.lua +++ b/runtime/lua/vim/_editor.lua @@ -222,7 +222,7 @@ do --- -- Scrub ANSI color codes from paste input. --- lines[i] = line:gsub('\27%[[0-9;mK]+', '') --- end - --- overridden(lines, phase) + --- return overridden(lines, phase) --- end --- end)(vim.paste) --- ``` diff --git a/runtime/lua/vim/treesitter.lua b/runtime/lua/vim/treesitter.lua index 8d5cd2eeec..c21e0aff07 100644 --- a/runtime/lua/vim/treesitter.lua +++ b/runtime/lua/vim/treesitter.lua @@ -261,7 +261,7 @@ end ---@param row integer Position row ---@param col integer Position column --- ----@return {capture: string, lang: string, metadata: table}[] +---@return {capture: string, lang: string, metadata: vim.treesitter.query.TSMetadata}[] function M.get_captures_at_pos(bufnr, row, col) if bufnr == 0 then bufnr = api.nvim_get_current_buf() diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt index 20481153ed..8020bbd6e3 100644 --- a/src/nvim/CMakeLists.txt +++ b/src/nvim/CMakeLists.txt @@ -161,7 +161,6 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin") # https://github.com/neovim/neovim/issues/25295 target_link_options(nvim_bin PRIVATE "-Wl,-export_dynamic") # Apple Clang 16's new deduplication pass leads to lock-up on start - # TODO(clason): verify that problem remains after release or remove target_link_options(nvim_bin PRIVATE "-Wl,-no_deduplicate") elseif(CMAKE_SYSTEM_NAME MATCHES "OpenBSD") target_link_libraries(main_lib INTERFACE pthread c++abi) diff --git a/src/nvim/option.c b/src/nvim/option.c index 3a5a652dd2..aac15e220a 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -246,7 +246,7 @@ static void set_init_default_backupskip(void) // note: the value (and therefore plen) may already include a path separator size_t itemsize = plen + (has_trailing_path_sep ? 0 : 1) + 2; char *item = xmalloc(itemsize); - // add a preceeding comma as a separator after the first item + // add a preceding comma as a separator after the first item size_t itemseplen = (ga.ga_len == 0) ? 0 : 1; size_t itemlen = (size_t)vim_snprintf(item, itemsize, "%s%s*", p, diff --git a/test/README.md b/test/README.md index 1477bc593e..d1b053fca3 100644 --- a/test/README.md +++ b/test/README.md @@ -263,7 +263,7 @@ by the semantic component they are testing. Lint ==== -`make lint` (and `make lualint`) runs [luacheck](https://github.com/mpeterv/luacheck) +`make lint` (and `make lintlua`) runs [luacheck](https://github.com/mpeterv/luacheck) on the test code. If a luacheck warning must be ignored, specify the warning code. Example: diff --git a/test/old/testdir/test_normal.vim b/test/old/testdir/test_normal.vim index 469a568820..46fddd6c1a 100644 --- a/test/old/testdir/test_normal.vim +++ b/test/old/testdir/test_normal.vim @@ -4284,7 +4284,7 @@ func Test_halfpage_longline() endfunc " Test for Ctrl-E with long line and very narrow window, -" used to cause an inifite loop +" used to cause an infinite loop func Test_scroll_longline_no_loop() 4vnew setl smoothscroll number showbreak=> scrolloff=2 diff --git a/test/unit/mbyte_spec.lua b/test/unit/mbyte_spec.lua index 0a322ce651..bdc111de2c 100644 --- a/test/unit/mbyte_spec.lua +++ b/test/unit/mbyte_spec.lua @@ -350,7 +350,7 @@ describe('mbyte', function() describe('utf_fold', function() itp('does not crash with surrogates #30527', function() - eq(0xDDFB, lib.utf_fold(0xDDFB)) + eq(0xddfb, lib.utf_fold(0xddfb)) -- low surrogate, invalid as a character eq(0xd800, lib.utf_fold(0xd800)) -- high surrogate, invalid as a character end) diff --git a/test/unit/termkey_spec.lua b/test/unit/termkey_spec.lua index ffb83d5852..0381cfd15a 100644 --- a/test/unit/termkey_spec.lua +++ b/test/unit/termkey_spec.lua @@ -332,7 +332,7 @@ describe('termkey', function() t.eq(termkey.termkey_get_buffer_remaining(tk), 511) -- buffer free 511 after push_bytes t.eq(termkey.termkey_get_buffer_size(tk), 512) -- buffer size 512 after push_bytes - t.eq(termkey.termkey_getkey(tk, key), termkey.TERMKEY_RES_KEY) -- buffered key still useable after resize + t.eq(termkey.termkey_getkey(tk, key), termkey.TERMKEY_RES_KEY) -- buffered key still usable after resize termkey.termkey_destroy(tk) end) |