Skip to content

Commit

Permalink
Closes #80
Browse files Browse the repository at this point in the history
  • Loading branch information
p-ranav committed Dec 8, 2020
1 parent 312c49b commit b85eadb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/indicators/terminal_size.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ static inline std::pair<size_t, size_t> terminal_size() {
return {static_cast<size_t>(rows), static_cast<size_t>(cols)};
}

size_t terminal_width() { return terminal_size().second; }
static inline size_t terminal_width() { return terminal_size().second; }

} // namespace indicators

Expand Down
2 changes: 1 addition & 1 deletion single_include/indicators/indicators.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ static inline std::pair<size_t, size_t> terminal_size() {
return {static_cast<size_t>(rows), static_cast<size_t>(cols)};
}

size_t terminal_width() { return terminal_size().second; }
static inline size_t terminal_width() { return terminal_size().second; }

} // namespace indicators

Expand Down

0 comments on commit b85eadb

Please sign in to comment.