codythegreat / dss

Dead Simple Slides - A terminal based presentation tool with Vim style keybindings
MIT License
54 stars 3 forks source link

Opening a new file causes junk text to be printed to the screen #26

Closed codythegreat closed 4 years ago

codythegreat commented 4 years ago

Opening a new file (calling :open filename) will read the file and display it, but the text is partially garbled by junk characters.

I'm pretty sure that this is an issue with the call to freeLine() in the main.c file. I commented out that line, and the slides rendered fine for the most part (this isn't good though as the old lines are still sitting in memory taking up space.)

codythegreat commented 4 years ago

I posted this issue as a stack overflow question. I'm still experimenting with different solutions on solving this problem.