Skip to content

Case changing commands over multi-line ranges lose newlines #1320

@donaldcallen

Description

@donaldcallen

Problem

Assume these lines are present

now is the time
for all good men

If I position the cursor on the first character of the first line and then invoke 'shift-v' to go into VISUAL-LINE mode and then invoke 'j' to extend the VISUAL-LINE range to both lines and then issue the command 'gU', I end up with this:

NOW IS THE TIMEFOR ALL GOOD MEN

Something similar happens if use the 'gu' command. So whether converting to upper or lower case, this sequence of commands results in the loss of the newlines.

This works correctly in vim, nvim, kakoune, etc.

Steps to reproduce

No response

vis version (vis -v)

vis v0.9-384-g93f2c297 +curses +lua +tre +acl

Terminal name/version

No response

TERM environment variable

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions