]> git.lizzy.rs Git - micro.git/commit
Replace BufWidth & BufHeight with BufView
authorDmitry Maluka <dmitrymaluka@gmail.com>
Thu, 8 Apr 2021 21:32:00 +0000 (23:32 +0200)
committerDmitry Maluka <dmitrymaluka@gmail.com>
Thu, 8 Apr 2021 21:54:18 +0000 (23:54 +0200)
commitaaac60a78ded89332b8c20f3a54ee632e1f7eb1e
tree9ff1f1ccb050af25ff3b30bcde88de1a9470645e
parentab6ce444a74da75d7aa8d50583120e0d9294cea1
Replace BufWidth & BufHeight with BufView

BufView returns not only the buffer's width and height but also its
x,y position. It may be useful e.g. for checking if a mouse click was
on the actual buffer or ourside it, e.g. on the gutter.
internal/action/actions.go
internal/display/bufwindow.go
internal/display/infowindow.go
internal/display/window.go