pytermgui icon indicating copy to clipboard operation
pytermgui copied to clipboard

Fix focus_next reverse wrapping

Open lfgberg opened this issue 6 months ago • 1 comments

When using focus_next with a negative step it would cause an exception instead of properly wrapping around - using modulo makes it work correctly in either direction

lfgberg avatar May 17 '25 21:05 lfgberg

See https://github.com/bczsalba/pytermgui/issues/161

lfgberg avatar May 17 '25 21:05 lfgberg