splits: extract function for finding index of the split in parent
Hi there,
I struggled with vpslit children last week. Tried to use them later in buffer/buffer.go (tried to find a BufPane of a vsplit of a tab by node ID ), but (* Node).Children() always returned empty array, even though I debugged and they were added as expected. Any idea why that happened?
Thanks, Semirke
Hi there,
I struggled with vpslit children last week. Tried to use them later in buffer/buffer.go (tried to find a BufPane of a vsplit of a tab by node ID ), but (* Node).Children() always returned empty array, even though I debugged and they were added as expected. Any idea why that happened?
Thanks, Semirke
It is a question in general or it is with my change? If it is a question in general read further...
It is not a question to me, I just started to learn what happens inside micro and just saw the same logic represented via copy-paste...
In general as I understood. Splits are designed to be separate from buffers but somewhere (where?) exist bridge between them
Hi there, I struggled with vpslit children last week. Tried to use them later in buffer/buffer.go (tried to find a BufPane of a vsplit of a tab by node ID ), but (* Node).Children() always returned empty array, even though I debugged and they were added as expected. Any idea why that happened? Thanks, Semirke
It is a question in general or it is with my change? If it is a question in general read further...
It is not a question to me, I just started to learn what happens inside micro and just saw the same logic represented via copy-paste...
In general as I understood. Splits are designed to be separate from buffers but somewhere (where?) exist bridge between them
Yep, it was a general discussion attempt with someone who's also intersted in micro :)