]> git.lizzy.rs Git - micro.git/commit
Fix non-working split resize with mouse drag (#1811)
authorDmitry Maluka <dmitrymaluka@gmail.com>
Tue, 4 Aug 2020 22:37:19 +0000 (00:37 +0200)
committerGitHub <noreply@github.com>
Tue, 4 Aug 2020 22:37:19 +0000 (18:37 -0400)
commit6e43af31cb27d9b57811577ca65c59b1c52424ac
tree90822453337bedab22bdee5ecd93b0ecab6b483d
parenta4cc5a4146694ae11fdabc2d46deb3f0f947e266
Fix non-working split resize with mouse drag (#1811)

Fix the 2nd part of #1773: resize via mouse drag doesn't work if the
split on the left contains other splits, i.e. is not a leaf node.

The problem is that only leaf nodes have unique id. For non-leaf nodes
ID() returns 0. So we shouldn't search the node by id.
So replace GetMouseSplitID() with GetMouseSplitNode().
internal/action/tab.go
internal/display/uiwindow.go