nvdash: clamp cursor row/column to prevent out-of-range errors#512
nvdash: clamp cursor row/column to prevent out-of-range errors#512zachMahan64 wants to merge 2 commits intoNvChad:v3.0from
Conversation
|
share your setup |
|
here's my config. I haven't touched the NvChad core, and my only config is inside this repo. files of interest: It is worth noting that the size checks in my chadrc when loading the nvdash header are silently failing and defaulting to the large size. Nonetheless, the lack of clamping is still causing errors when large headers are loaded. I do not know how directly related, if at all, those issues are. I tested my exact same config on both macOS and Fedora and had the same issue on both until I made the changes in the PR. |
|
header can be a function btw, try that 🤔 |
|
like this? still getting the same issue. original what i just tried |
|
yes the 2nd one, i'm assuming it happens cuz of your large header? |
|
i'm still seeing the issue with the second one. With the PR changes, there’s no error, but now the cursor doesn’t visually hover above the buttons. navigation (scroll/select) works fine, though the cursor ends up slightly left of the buttons (looks like column 2). Not really sure why this affects the hover, but it seems more about how the cursor works with buttons' text than whether the header is a function. |
I received some out-of-range Lua errors when loading NvDash (in my essentially stock NvChad set-up), due to large text-art being rendered on a small terminal window.
The error:
My fixes:
These changes prevent E5108 errors when opening or scrolling in NvDash in small terminal windows with large text-art.