Commit Graph
5 Commits
Author SHA1 Message Date
Wez Furlong 3028ee4cdd more robust cycle detection when debug printing lua values
printing _G would still sometimes overflow for me.
The code a0b8d2196a wasn't sufficient so
beef it up both with a hash set to remember all visited refs as well
as a depth limit of 128, which should be deep enough for most practical
purposes.
2022-03-17 09:41:29 -07:00
Wez Furlong a0b8d2196a prevent stack overflow when printing tables with cycles in debug overlay
refs: https://github.com/wez/wezterm/issues/1722
2022-03-16 07:26:55 -07:00
Wez Furlong 09f0421b48 add lua repl to the debug overlay
`wezterm` is pre-imported.
The repl prints the result of the expressions to the overlay.

refs: https://github.com/wez/wezterm/issues/641
2021-05-03 09:19:44 -07:00
Wez Furlong 2902a76c5c lint: fix some clippy stuff 2021-03-25 10:05:34 -07:00
Wez Furlong d64dab2a2b move lua helpers into own crate 2020-10-03 11:15:57 -07:00