CudaText: API: Inserting a single '\n' at the end of the document adds two lines if last line is not empty

Starting with this: start

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

Most upvoted comments

again fixed this(old way gave a regression). beta upd.

It’s hard to fix, maybe later.