diff --git a/docs/tips.md b/docs/tips.md index 29b4517b..49703164 100644 --- a/docs/tips.md +++ b/docs/tips.md @@ -20,9 +20,9 @@ You can implement a full border for Yazi via the UI plugin. Copy the [`Manager:render` method](https://github.com/sxyazi/yazi/blob/v0.2.3/yazi-plugin/preset/components/manager.lua) _*only*_ to your `~/.config/yazi/init.lua`, then apply the following patch: ```diff -@@ -10,16 +10,28 @@ - }) - :split(area) +@@ -18,16 +18,28 @@ +function Manager:render(area) + local chunks = self:layout(area) + local bar = function(c, x, y) + x, y = math.max(0, x), math.max(0, y)