6 Commits

Author SHA1 Message Date
Allan Odgaard
371d426c5f Add ‘char const*’ insertion API to ng::buffer_t 2016-06-21 23:23:44 +02:00
Allan Odgaard
39a7d5a867 Do not prevent coalescing last edit when redoing it
We always undo the last edit without any coalescing so the user can be sure that ⌘Z only undos the last thing they did. For redo though this makes less sense, although it does break symmetry, i.e. pressing ⌘Z n times will bring us back again by pressing ⇧⌘Z only n-1 times.
2016-06-13 12:59:31 +02:00
Allan Odgaard
e91bf08e69 Allow forcing an undo group to be closed 2014-09-02 18:59:28 +02:00
Allan Odgaard
39b94e6ac3 Harmonize whitespace and add trailing newline 2014-04-14 14:26:52 +07:00
Allan Odgaard
b139ac5097 Change push_back → emplace_back (C++11)
This is mainly motivated by readability, so I only did a few select replacements.
2013-02-08 11:20:35 +01:00
Allan Odgaard
9894969e67 Initial commit 2012-08-09 16:25:56 +02:00