Fixed bug in saving files: was missing os.O_TRUNC bit flag

This commit is contained in:
Luke I. Wilson
2021-03-24 17:47:13 -05:00
parent 9133ab55d0
commit d47e407063
3 changed files with 2 additions and 14 deletions

View File

@ -113,7 +113,6 @@ func (t *TextEdit) Delete(forwards bool) {
t.Dirty = true
if t.selectMode { // If text is selected, delete the whole selection
t.cury, t.curx = t.Buffer.ClampLineCol(t.selection.EndLine, t.selection.EndCol)
t.selectMode = false // Disable selection and prevent infinite loop
// Delete the region