siddhant3s/Online-Emacs — comment on commit 0e4b02b26e306dfb5e88957a3d726fd9c25f34e0
File: script.js line 25
By SkyDiploma:

Hey, I was just looking over the code. I thought we could add in a small Text-Cursor for the whole System. All I did was add 2 lines of code here.

$('.buffer')[0].innerText = $('.buffer')[0].innerText.substr(0,point) + $('.buffer')[0].innerText.substr(point+1); // Removes the Cursor character
$('.buffer')[0].innerText = $('.buffer')[0].innerText+String.fromCharCode(ch);
$('.buffer')[0].innerText = $('.buffer')[0].innerText+String.fromCharCode(9611); //Adds the Cursor index character after edit.