bitburner-official / bitburner-src

Bitburner source code.
Other
688 stars 232 forks source link

Weird behaviour after pressing Insert key in vim mode #1421

Open Blockguy24 opened 2 weeks ago

Blockguy24 commented 2 weeks ago

When using the editor in Vim mode, pressing the Insert key while in vim mode changes the cursor from a line to a block and the editor enters replace mode. There are two issues:

Game version: Bitburner v2.6.1 (e8a825829)

Reproduction steps:

These steps assume that the cursor style in editor settings is set to "line"

  1. Enter vim test.txt in the terminal (exact filename does not matter)
  2. Press i to enter insert mode
  3. Type some text such as the quick brown fox jumps over the lazy dog
  4. Go to the start of the line with the Home key or arrow keys or some other method
  5. Press the Insert key
  6. Type some text such as aaa. This will replace the text as expected.
  7. Press Insert again
  8. Type some more text. The text will continue to be replaced. This is the first issue.
  9. Press Escape to enter normal mode
  10. Press i to enter insert mode again. The cursor remains as a block instead of switching to a line. This is the second issue.