erietz / vim-terminator

:dagger: Run your code in an output buffer or a vim terminal conveniently
GNU General Public License v3.0
116 stars 2 forks source link

neovim: last line only prints if ends with \n #9

Closed erietz closed 3 years ago

erietz commented 3 years ago

In Neovim, the last line of output is not appended to the output buffer if it does not end in a new line character \n.

This minimal code results in the issue

#include <stdio.h>

int main() {
  printf("hello world");
  // printf("\n");
  return 0;
}