diff --git a/pyproject.toml b/pyproject.toml index 23075045..28bc7c75 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,8 +2,8 @@ name = "rich" homepage = "https://github.com/willmcgugan/rich" documentation = "https://rich.readthedocs.io/en/latest/" -version = "0.7.0" -description = "Render rich text, tables, syntax highlighting, markdown and more to the terminal" +version = "0.7.1" +description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal" authors = ["Will McGugan "] license = "MIT" readme = "README.md" diff --git a/rich/console.py b/rich/console.py index 5c0e1e07..bcbac906 100644 --- a/rich/console.py +++ b/rich/console.py @@ -840,7 +840,8 @@ class Console: color_system = self._color_system buffer = self._buffer[:] if self.record: - self._record_buffer.extend(buffer) + with self._record_buffer_lock: + self._record_buffer.extend(buffer) del self._buffer[:] for line in Segment.split_and_crop_lines(buffer, self.width, pad=False): for text, style in line: