Closed ElectrifyPro closed 4 months ago
Thanks for the issue!
This was already discussed in #321. The resolution was that it is not (easily) possible under current design. The alternatives are:
go
and gO
from 'mini.basics'.['\r'] = { output = { left = '\n', right = '\n' } }
as custom surrounding, but that would not work for indented lines.Closing as not planned.
Contributing guidelines
Module(s)
mini.surround
Description
When trying to add a newline surrounding, i.e. by typing:
(where
<CR>
represents actually pressing the enter key)The result is that carriage return bytes (^M, 0x0d) are added as the surrounding character, instead of line feed (0x0a). See example images below.
I am running Neovim on WSL 2.
Neovim version
NVIM v0.9.4
Steps to reproduce
nvim
(open blank file)30aa<Esc>
(add 30 lowercase As as test content)sav0<CR>
(add newline surrounding on entire line assumingmini.surround
is installed, and cursor is at the lasta
)Expected behavior
Buffer that looks like:![image](https://github.com/echasnovski/mini.nvim/assets/1387522/8544dd69-8dc8-481d-b516-cbdc5283b3bc)
Actual behavior