From b37fc6b3f9fe1af94a9fd48fa68eabeade5b098e Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Wed, 15 Feb 2023 10:42:23 +0000 Subject: [PATCH] Allow cursor to hover above fixed column cells --- src/textual/widgets/_data_table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textual/widgets/_data_table.py b/src/textual/widgets/_data_table.py index eb31f3f20..3a3d5e100 100644 --- a/src/textual/widgets/_data_table.py +++ b/src/textual/widgets/_data_table.py @@ -877,7 +877,7 @@ class DataTable(ScrollView, Generic[CellType], can_focus=True): """Clamp a coordinate such that it falls within the boundaries of the table.""" row, column = coordinate row = clamp(row, 0, self.row_count - 1) - column = clamp(column, self.fixed_columns, len(self.columns) - 1) + column = clamp(column, 0, len(self.columns) - 1) return Coordinate(row, column) def watch_cursor_type(self, old: str, new: str) -> None: