mirror of
				https://github.com/Maks1mS/bubbles.git
				synced 2025-11-03 23:21:22 +03:00 
			
		
		
		
	добавляет ResetView и ResetChanged
This commit is contained in:
		@@ -466,10 +466,18 @@ func (m *Model) Reset() {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *Model) ResetWithoutValue() {
 | 
			
		||||
	m.ResetView()
 | 
			
		||||
	m.ResetChanged()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *Model) ResetView() {
 | 
			
		||||
	m.col = 0
 | 
			
		||||
	m.row = 0
 | 
			
		||||
	m.viewport.GotoTop()
 | 
			
		||||
	m.SetCursor(0)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (m *Model) ResetChanged() {
 | 
			
		||||
	m.isChanged = false
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user