rhysd/vim.wasm

VimWasm.cmdline() does not update screen

rhysd opened this issue · 0 comments

rhysd commented

Describe the bug

VimWasm.cmdline() runs given command, but screen is not updated. To avoid this, appending | redraw to the command is necessary.

Steps To Reproduce

  1. Visit https://rhysd.github.io/vim.wasm/?debug=1
  2. Open DevTools console
  3. Run vim.cmdline('edit ~/.vim/vimrc')

Expected behavior

Screen renders the content of ~/.vim/vimrc

Actual behavior

Screen is not updated though only statusline is updated to notify opening ~/.vim/vimrc

Screenshots/DevTools console (if possible)

スクリーンショット 2019-07-09 14 47 39

Your environment

  • OS: macOS 10.12
  • Browser: Chrome (stable)
  • Browser Version: 75

Additional context (if any)