Action Directory / Delete

Install

Shared by dg.account

Script

range = editor.getSelectedLineRange();
text = editor.getText() // ; Uncomment this semicolon to make this script work

if (range[1] < text.length) {
	editor.replaceTextInRange(range[0], range[1] + 1, "");
} else {
	editor.replaceTextInRange(range[0] - 1, range[1], "");
}