Fix a regression in 0.27.0 that broke setting of specific edge padding/margin via remote control. Fixes #6333

This commit is contained in:
Kovid Goyal
2023-06-04 22:23:32 +05:30
parent af65b68ac3
commit 21d0522d90
2 changed files with 6 additions and 4 deletions

View File

@@ -73,6 +73,8 @@ Detailed list of changes
- Fix a regression in 0.28.0 that caused a buffer overflow when clearing the screen (:iss:`6306`, :pull:`6308`)
- Fix a regression in 0.27.0 that broke setting of specific edge padding/margin via remote control (:iss:`6333`)
0.28.1 [2023-04-21]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@@ -16,10 +16,10 @@ func parse_set_spacing(args []string) (map[string]any, error) {
mapper[q] = []string{q + "-left", q + "-top", q + "-right", q + "-bottom"}
mapper[q+"-h"] = []string{q + "-left", q + "-right"}
mapper[q+"-v"] = []string{q + "-top", q + "-bottom"}
mapper[q+"-left"] = []string{q + "left"}
mapper[q+"-right"] = []string{q + "right"}
mapper[q+"-top"] = []string{q + "top"}
mapper[q+"-bottom"] = []string{q + "bottom"}
mapper[q+"-left"] = []string{q + "-left"}
mapper[q+"-right"] = []string{q + "-right"}
mapper[q+"-top"] = []string{q + "-top"}
mapper[q+"-bottom"] = []string{q + "-bottom"}
}
for _, arg := range args {
k, v, found := strings.Cut(arg, "=")