mirror of
https://github.com/neovim/neovim.git
synced 2026-04-23 07:45:32 +00:00
vim-patch:9.0.1515: reverse() does not work for a String
Problem: reverse() does not work for a String.
Solution: Implement reverse() for a String. (Yegappan Lakshmanan,
closes vim/vim#12179)
03ff1c2dde
vim-patch:9.0.1738: Duplicate code to reverse a string
Problem: Duplicate code to reverse a string
Solution: Move reverse_text() to strings.c and remove string_reverse().
closes: vim/vim#12847
4dd266cb66
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
12
runtime/lua/vim/_meta/vimfn.lua
generated
12
runtime/lua/vim/_meta/vimfn.lua
generated
@@ -6762,11 +6762,13 @@ vim.fn['repeat'] = function(expr, count) end
|
||||
--- @return any
|
||||
function vim.fn.resolve(filename) end
|
||||
|
||||
--- Reverse the order of items in {object} in-place.
|
||||
--- {object} can be a |List| or a |Blob|.
|
||||
--- Returns {object}.
|
||||
--- Returns zero if {object} is not a List or a Blob.
|
||||
--- If you want an object to remain unmodified make a copy first: >vim
|
||||
--- Reverse the order of items in {object}. {object} can be a
|
||||
--- |List|, a |Blob| or a |String|. For a List and a Blob the
|
||||
--- items are reversed in-place and {object} is returned.
|
||||
--- For a String a new String is returned.
|
||||
--- Returns zero if {object} is not a List, Blob or a String.
|
||||
--- If you want a List or Blob to remain unmodified make a copy
|
||||
--- first: >vim
|
||||
--- let revlist = reverse(copy(mylist))
|
||||
--- <
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user