reader: move private members to the bottom

No functional change.
This commit is contained in:
Johannes Altmanninger 2022-09-14 13:35:44 +02:00
parent 0ffb0fb786
commit 2b2f64c045

View file

@ -79,17 +79,6 @@ struct undo_history_t {
/// Helper class for storing a command line.
class editable_line_t {
/// The command line.
wcstring text_;
/// The current position of the cursor in the command line.
size_t position_ = 0;
/// The nesting level for atomic edits, so that recursive invocations of start_edit_group()
/// are not ended by one end_edit_group() call.
int32_t edit_group_level_ = -1;
/// Monotonically increasing edit group, ignored when edit_group_level_ is -1. Allowed to wrap.
uint32_t edit_group_id_ = -1;
public:
undo_history_t undo_history;
@ -128,6 +117,18 @@ class editable_line_t {
void begin_edit_group();
/// End a logical grouping of command line edits that should be undone/redone together.
void end_edit_group();
private:
/// The command line.
wcstring text_;
/// The current position of the cursor in the command line.
size_t position_ = 0;
/// The nesting level for atomic edits, so that recursive invocations of start_edit_group()
/// are not ended by one end_edit_group() call.
int32_t edit_group_level_ = -1;
/// Monotonically increasing edit group, ignored when edit_group_level_ is -1. Allowed to wrap.
uint32_t edit_group_id_ = -1;
};
/// Read commands from \c fd until encountering EOF.