text-editor.c

It contains all the code to program this text editor. The code is well commented so there should be very few ambiguities. Hope  it helps someone :)