aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/man.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-04-26 08:43:29 -0700
committerGitHub <noreply@github.com>2024-04-26 08:43:29 -0700
commit9b028bd64f4260a3a5576a3632f95a44bd658615 (patch)
tree8d1c7b96445f9b3efcce9f961fa49ceffc140480 /runtime/lua/man.lua
parentb2c26a875b9dfd17fd05cf01cf5cc13eb2a10dfd (diff)
downloadrneovim-9b028bd64f4260a3a5576a3632f95a44bd658615.tar.gz
rneovim-9b028bd64f4260a3a5576a3632f95a44bd658615.tar.bz2
rneovim-9b028bd64f4260a3a5576a3632f95a44bd658615.zip
refactor(vim.iter)!: rename xxback() => rxx() #28503
Problem: vim.iter has both `rfind()` and various `*back()` methods, which work in "reverse" or "backwards" order. It's inconsistent to have both kinds of names, and "back" is fairly uncommon (rust) compared to python (rfind, rstrip, rsplit, …). Solution: - Remove `nthback()` and let `nth()` take a negative index. - Because `rnth()` looks pretty obscure, and because it's intuitive for a function named `nth()` to take negative indexes. - Rename `xxback()` methods to `rxx()`. - This informally groups the "list-iterator" functions under a common `r` prefix, which helps discoverability. - Rename `peekback()` to `pop()`, in duality with the existing `peek`.
Diffstat (limited to 'runtime/lua/man.lua')
0 files changed, 0 insertions, 0 deletions