File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed
src/components/commit_details Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
26
26
- min size for relative popups on small terminals ([ #179 ] ( https://github.com/extrawurst/gitui/issues/179 ) )
27
27
- fix crash on resizing terminal to very small width ([ #198 ] ( https://github.com/extrawurst/gitui/issues/198 ) )
28
28
- fix broken tags when using a different internal representation ([ #206 ] ( https://github.com/extrawurst/gitui/issues/206 ) )
29
+ - tags are not cleanly seperated in details view ([ #212 ] ( https://github.com/extrawurst/gitui/issues/212 ) )
29
30
30
31
## [ 0.8.1] - 2020-07-07
31
32
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ use asyncgit::{
12
12
CWD ,
13
13
} ;
14
14
use crossterm:: event:: Event ;
15
+ use itertools:: Itertools ;
15
16
use std:: borrow:: Cow ;
16
17
use sync:: CommitTags ;
17
18
use tui:: {
@@ -159,12 +160,20 @@ impl DetailsComponent {
159
160
self . theme . text ( false , false ) ,
160
161
) ) ;
161
162
162
- for tag in & self . tags {
163
- res. push ( Text :: Styled (
164
- Cow :: from ( tag) ,
165
- self . theme . text ( true , false ) ,
166
- ) ) ;
167
- }
163
+ res. extend (
164
+ self . tags
165
+ . iter ( )
166
+ . map ( |tag| {
167
+ Text :: Styled (
168
+ Cow :: from ( tag) ,
169
+ self . theme . text ( true , false ) ,
170
+ )
171
+ } )
172
+ . intersperse ( Text :: Styled (
173
+ Cow :: from ( "," ) ,
174
+ self . theme . text ( true , false ) ,
175
+ ) ) ,
176
+ ) ;
168
177
}
169
178
170
179
res
You can’t perform that action at this time.
0 commit comments