tabmove: Make 0 a real alias to $

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
This commit is contained in:
Mohammad AlSaleh 2018-08-04 18:01:19 +03:00
parent 9df30d2dce
commit 728b5ccadf

View file

@ -1818,7 +1818,7 @@ export async function tabmove(index = "$") {
} else if (index.startsWith("-")) {
relative = true
newindex = Number(index) + aTab.index
} else if (["end", "$"].includes(index)) {
} else if (["end", "$", "0"].includes(index)) {
newindex = maxindex
} else if (["start", "^"].includes(index)) {
newindex = 0