mirror of
				https://github.com/Maks1mS/bubbles.git
				synced 2025-11-03 23:21:22 +03:00 
			
		
		
		
	fix(cursor): apply TextStyle inline (#230)
Co-authored-by: Maas Lalani <maas@lalani.dev>
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							8b3bfee06d
						
					
				
				
					commit
					062b257e8c
				
			@@ -201,7 +201,7 @@ func (m *Model) SetChar(char string) {
 | 
			
		||||
// View displays the cursor.
 | 
			
		||||
func (m Model) View() string {
 | 
			
		||||
	if m.Blink {
 | 
			
		||||
		return m.TextStyle.Render(m.char)
 | 
			
		||||
		return m.TextStyle.Inline(true).Render(m.char)
 | 
			
		||||
	}
 | 
			
		||||
	return m.Style.Inline(true).Reverse(true).Render(m.char)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user