Skip to content

Commit

Permalink
Correctly track whether files have been modified since saving.
Browse files Browse the repository at this point in the history
Fixes #122.
  • Loading branch information
solemnwarning committed Jul 28, 2021
1 parent 1ca49d0 commit 35240a5
Show file tree
Hide file tree
Showing 4 changed files with 343 additions and 103 deletions.
2 changes: 2 additions & 0 deletions src/ByteRangeMap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ namespace REHex
const_iterator begin() const { return ranges.begin(); }
const_iterator end() const { return ranges.end(); }
bool empty() const { return ranges.empty(); }
const std::pair<Range, T> &front() const { assert(!ranges.empty()); return ranges.front(); }
const std::pair<Range, T> &back() const { assert(!ranges.empty()); return ranges.back(); }

/**
* @brief Adjust for data being inserted into file.
Expand Down

0 comments on commit 35240a5

Please sign in to comment.