9 Commits

Author SHA1 Message Date
Allan Odgaard
4ec10c0923 Don’t annotate types and classes with PUBLIC
This was required when we linked each framework as its own thing, which we do not do anymore, and if we do go back to this system, we can simply have symbols public by default.
2020-06-05 21:22:50 +07:00
Allan Odgaard
562c6f519b Add missing boundary check when accessing undo/redo stack 2019-08-26 21:45:25 +02:00
Allan Odgaard
dfad1a61ce Add undo_manager_t::in_undo_group API 2016-10-11 13:02:36 +02:00
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