Files
neovim/runtime
William Boman 26c918d03f fix(lua): always return nil values in vim.tbl_get when no results
While `return` and `return nil` are for most intents and purposes
identical, there are situations where they're not. For example,
calculating the amount of values via the `select()` function will yield
varying results:

```lua
local function nothing() return     end
local function null()    return nil end

select('#', nothing()) -- 0
select('#', null())    -- 1
```

`vim.tbl_get` currently returns both nil and no results, which makes it
unreliable to use in certain situations without manually accounting for
these discrepancies.
2022-12-15 02:43:43 +01:00
..
2022-12-08 16:33:38 +01:00
2022-12-08 16:33:38 +01:00
2022-12-12 06:13:23 +01:00
2022-12-08 16:33:38 +01:00
2021-09-13 16:33:41 +02:00
2021-05-01 22:29:03 -04:00
2022-12-08 16:33:38 +01:00
2014-12-19 15:28:49 -05:00
2022-12-12 06:13:23 +01:00
2022-08-20 10:04:55 +02:00
2019-07-29 20:50:07 +02:00
2021-04-27 09:21:32 -04:00
2022-12-08 16:33:38 +01:00
2019-07-29 20:50:07 +02:00
2022-09-30 17:15:13 +02:00
2022-10-17 08:19:48 +02:00