Fix undo of line end type change
commit6a3a53f421a6868ca041352ac04c91e67886b458
authorJiří Techet <techet@gmail.com>
Thu, 23 Jun 2016 16:10:50 +0000 (23 18:10 +0200)
committerJiří Techet <techet@gmail.com>
Thu, 23 Jun 2016 16:10:50 +0000 (23 18:10 +0200)
tree9fe4e5ef57f755762802c2d69ddd2ed9dfeb98f5
parentf427a3a6e19fe8c7190b0f8a1c269f3e739fbfb3
Fix undo of line end type change

At the moment undo of line end type change only undos the changes made
in the document but the different line ending settings remains active.

This patch fixes the issue by combining the line end scintilla undo action
with a new UNDO_EOL action responsible for updating the line ending
settings.

Fixes #409
src/callbacks.c
src/document.c
src/documentprivate.h