Change the new option to limit tab title lengths to apply to the length of the title, as documented, nit the full tab

This commit is contained in:
Kovid Goyal
2022-11-29 17:41:27 +05:30
parent 6f66bbd424
commit 5c50e3869c
5 changed files with 19 additions and 12 deletions
+3 -3
View File
@@ -1246,9 +1246,6 @@ class Parser:
def tab_fade(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
ans['tab_fade'] = tab_fade(val)
def tab_max_length(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
ans['tab_max_length'] = positive_int(val)
def tab_powerline_style(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
val = val.lower()
if val not in self.choices_for_tab_powerline_style:
@@ -1268,6 +1265,9 @@ class Parser:
choices_for_tab_switch_strategy = frozenset(('last', 'left', 'previous', 'right'))
def tab_title_max_length(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
ans['tab_title_max_length'] = positive_int(val)
def tab_title_template(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
ans['tab_title_template'] = tab_title_template(val)