diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-01-07 23:04:15 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-01-07 23:04:15 +0000 |
| commit | 74765c0660239f48702ebc6d149d522b85392b63 (patch) | |
| tree | d548627669b16513d5c2e8c877a7b15eb1879919 /src/vertical_position.cc | |
| parent | be2117b1ea71c535e03c02be962387829806b1da (diff) | |
Sketchy support for total line counts when describing vertical position as a line number.
Diffstat (limited to 'src/vertical_position.cc')
| -rw-r--r-- | src/vertical_position.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vertical_position.cc b/src/vertical_position.cc index 1fdb1e1..cdf0b6c 100644 --- a/src/vertical_position.cc +++ b/src/vertical_position.cc @@ -26,8 +26,8 @@ VerticalPosition::operator== (VerticalPosition const & other) const { if (proportional && reference && other.proportional && other.reference) { return proportional.get() == other.proportional.get() && reference.get() == other.reference.get(); - } else if (reference && line && other.reference && other.line) { - return line.get() == other.line.get() && reference.get() == other.reference.get(); + } else if (reference && line && lines && other.reference && other.line && other.lines) { + return line.get() == other.line.get() && lines.get() == other.lines.get() && reference.get() == other.reference.get(); } return false; |
