mirror of
https://github.com/powerline/powerline.git
synced 2025-07-29 16:55:07 +02:00
Fix name regex: allow single-letter names
This commit is contained in:
parent
27db44ac7a
commit
2fd04348f7
@ -1209,7 +1209,7 @@ segment_module_spec = Spec().type(unicode).func(check_segment_module).optional()
|
|||||||
sub_segments_spec = Spec()
|
sub_segments_spec = Spec()
|
||||||
segment_spec = Spec(
|
segment_spec = Spec(
|
||||||
type=Spec().oneof(type_keys).optional(),
|
type=Spec().oneof(type_keys).optional(),
|
||||||
name=Spec().re('^[a-zA-Z_]\w+$').func(check_segment_name).optional(),
|
name=Spec().re('^[a-zA-Z_]\w*$').func(check_segment_name).optional(),
|
||||||
exclude_modes=Spec().list(vim_mode_spec()).optional(),
|
exclude_modes=Spec().list(vim_mode_spec()).optional(),
|
||||||
include_modes=Spec().list(vim_mode_spec()).optional(),
|
include_modes=Spec().list(vim_mode_spec()).optional(),
|
||||||
draw_hard_divider=Spec().type(bool).optional(),
|
draw_hard_divider=Spec().type(bool).optional(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user