17 lines
427 B
Go
17 lines
427 B
Go
// Copyright (c) 2026 Storm Dragon
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
package review
|
|
|
|
import "git.stormux.org/storm/fenrir/internal/presentation"
|
|
|
|
// Row and Indentation describe the effective review/text cursor without moving it.
|
|
func (r *Review) Row() int { return r.y }
|
|
|
|
func (r *Review) Indentation() (int, bool) {
|
|
if !r.ready {
|
|
return 0, false
|
|
}
|
|
return presentation.Indentation_level(r.screen.Line(r.y))
|
|
}
|