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