@@ -5783,7 +5783,6 @@ def redraw_highlight_get_text_fg(
5783
5783
has_dd : bool ,
5784
5784
tags : str | tuple [str ],
5785
5785
) -> tuple [str , bool ]:
5786
- redrawn = False
5787
5786
if (datarn , datacn ) in self .progress_bars :
5788
5787
kwargs = self .progress_bars [(datarn , datacn )]
5789
5788
else :
@@ -5816,7 +5815,7 @@ def redraw_highlight_get_text_fg(
5816
5815
if kwargs [1 ] is None or self .PAR .ops .display_selected_fg_over_highlights
5817
5816
else kwargs [1 ]
5818
5817
)
5819
- redrawn = self .redraw_highlight (
5818
+ self .redraw_highlight (
5820
5819
x1 = fc + 1 ,
5821
5820
y1 = fr + 1 ,
5822
5821
x2 = sc ,
@@ -5843,7 +5842,7 @@ def redraw_highlight_get_text_fg(
5843
5842
if kwargs [1 ] is None or self .PAR .ops .display_selected_fg_over_highlights
5844
5843
else kwargs [1 ]
5845
5844
)
5846
- redrawn = self .redraw_highlight (
5845
+ self .redraw_highlight (
5847
5846
x1 = fc + 1 ,
5848
5847
y1 = fr + 1 ,
5849
5848
x2 = sc ,
@@ -5870,7 +5869,7 @@ def redraw_highlight_get_text_fg(
5870
5869
if kwargs [1 ] is None or self .PAR .ops .display_selected_fg_over_highlights
5871
5870
else kwargs [1 ]
5872
5871
)
5873
- redrawn = self .redraw_highlight (
5872
+ self .redraw_highlight (
5874
5873
x1 = fc + 1 ,
5875
5874
y1 = fr + 1 ,
5876
5875
x2 = sc ,
@@ -5895,7 +5894,7 @@ def redraw_highlight_get_text_fg(
5895
5894
txtfg = self .PAR .ops .table_fg if kwargs [1 ] is None else kwargs [1 ]
5896
5895
if high_bg : # Only draw if fill exists
5897
5896
if not isinstance (kwargs , ProgressBar ):
5898
- redrawn = self .redraw_highlight (
5897
+ self .redraw_highlight (
5899
5898
x1 = fc + 1 ,
5900
5899
y1 = fr + 1 ,
5901
5900
x2 = sc ,
@@ -5910,7 +5909,7 @@ def redraw_highlight_get_text_fg(
5910
5909
if kwargs .del_when_done and kwargs .percent >= 100 :
5911
5910
del self .progress_bars [(datarn , datacn )]
5912
5911
else :
5913
- redrawn = self .redraw_highlight (
5912
+ self .redraw_highlight (
5914
5913
x1 = fc + 1 ,
5915
5914
y1 = fr + 1 ,
5916
5915
x2 = sc ,
@@ -5925,7 +5924,7 @@ def redraw_highlight_get_text_fg(
5925
5924
elif not kwargs :
5926
5925
if "cells" in selections and (r , c ) in selections ["cells" ]:
5927
5926
txtfg = self .PAR .ops .table_selected_cells_fg
5928
- redrawn = self .redraw_highlight (
5927
+ self .redraw_highlight (
5929
5928
x1 = fc + 1 ,
5930
5929
y1 = fr + 1 ,
5931
5930
x2 = sc ,
@@ -5938,7 +5937,7 @@ def redraw_highlight_get_text_fg(
5938
5937
)
5939
5938
elif "rows" in selections and r in selections ["rows" ]:
5940
5939
txtfg = self .PAR .ops .table_selected_rows_fg
5941
- redrawn = self .redraw_highlight (
5940
+ self .redraw_highlight (
5942
5941
x1 = fc + 1 ,
5943
5942
y1 = fr + 1 ,
5944
5943
x2 = sc ,
@@ -5951,7 +5950,7 @@ def redraw_highlight_get_text_fg(
5951
5950
)
5952
5951
elif "columns" in selections and c in selections ["columns" ]:
5953
5952
txtfg = self .PAR .ops .table_selected_columns_fg
5954
- redrawn = self .redraw_highlight (
5953
+ self .redraw_highlight (
5955
5954
x1 = fc + 1 ,
5956
5955
y1 = fr + 1 ,
5957
5956
x2 = sc ,
@@ -5964,7 +5963,7 @@ def redraw_highlight_get_text_fg(
5964
5963
)
5965
5964
else :
5966
5965
txtfg = self .PAR .ops .table_fg
5967
- redrawn = self .redraw_highlight (
5966
+ self .redraw_highlight (
5968
5967
x1 = fc + 1 ,
5969
5968
y1 = fr + 1 ,
5970
5969
x2 = sc ,
@@ -5975,7 +5974,7 @@ def redraw_highlight_get_text_fg(
5975
5974
can_width = None ,
5976
5975
pc = None ,
5977
5976
)
5978
- return txtfg , redrawn
5977
+ return txtfg
5979
5978
5980
5979
def redraw_highlight (
5981
5980
self ,
@@ -5989,6 +5988,10 @@ def redraw_highlight(
5989
5988
can_width : None | float = None ,
5990
5989
pc : None | float = None ,
5991
5990
) -> bool :
5991
+ if not self .PAR .ops .show_horizontal_grid :
5992
+ y2 += 1
5993
+ if not self .PAR .ops .show_vertical_grid :
5994
+ x2 += 1
5992
5995
if not is_type_int (pc ) or pc >= 100 :
5993
5996
coords = (
5994
5997
x1 - 1 if outline else x1 ,
@@ -6332,7 +6335,7 @@ def redraw_grid_and_text(
6332
6335
disp_loc = (r , c )
6333
6336
loc = (datarn , datacn )
6334
6337
tag = f"{ r } _{ c } "
6335
- fill , _ = self .redraw_highlight_get_text_fg (
6338
+ fill = self .redraw_highlight_get_text_fg (
6336
6339
r = r ,
6337
6340
c = c ,
6338
6341
fc = cleftgridln ,
0 commit comments