Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing a file with vi changes character case #247

Open
zccafa3 opened this issue Oct 7, 2022 · 0 comments
Open

Editing a file with vi changes character case #247

zccafa3 opened this issue Oct 7, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@zccafa3
Copy link
Contributor

zccafa3 commented Oct 7, 2022

Describe the bug
When editing a (python) file on an OC2 computer with vi, upon writing the changes, the character previously highlighted by the cursor is changed to upper case.

To Reproduce
Steps to reproduce the behavior:
example.py;

print("This is an exsample")
  1. from terminal vi example.py (with existing code)
  2. enter insert mode (i key), fix the typo by deleting the character "s", leaving the cursor at the character "a"
  3. enter normal mode (on 2015 macbook pro this is done with the option/alt + n keys)
  4. write the changes (by typing :w followed by the enter/return key), notice the character previously "a" is now "A"

Log files
N/A

Expected behavior
should not change the character case (the same is true in reverse i.e. "a" -> "A" -> "a", etc.)

Screenshots
N/A

Versions (please complete the following information):

  • Minecraft: 1.18.2
  • Forge: 40.1.0
  • OC2: 0.1.7
  • Sedna: 1.0.13
  • Markdown Manual: 1.2.1

Additional context
Also noticed that when writing the example file for testing, writing the changes with the cursor at the end of the single line file caused the "p" of "print" to become "P".
This issue can be avoided by writing the changes with the cursor on an empty line.

@zccafa3 zccafa3 added the bug Something isn't working label Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant