CudaText: API: Inserting a single '\n' at the end of the document adds two lines if last line is not empty
Starting with this:
both of these - add two lines each
ed.insert(1,0, '\n')
ed.insert(0,1, '\n')
Event tried ed.insert(0,1, '')
- does nothing
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 18 (18 by maintainers)
Commits related to this issue
- fixing https://github.com/Alexey-T/CudaText/issues/3408 — committed to Alexey-T/ATSynEdit by Alexey-T 3 years ago
- fixing more https://github.com/Alexey-T/CudaText/issues/3408 — committed to Alexey-T/ATSynEdit by Alexey-T 3 years ago
- fixing more https://github.com/Alexey-T/CudaText/issues/3408 — committed to Alexey-T/ATSynEdit by Alexey-T 3 years ago
- fixing https://github.com/Alexey-T/CudaText/issues/3408#issuecomment-849463515 — committed to Alexey-T/CudaText by Alexey-T 3 years ago
- again fixing #3408 — committed to Alexey-T/CudaText by Alexey-T 3 years ago
again fixed this(old way gave a regression). beta upd.
It’s hard to fix, maybe later.