minor fixes
This commit is contained in:
parent
9c361bbe00
commit
ec8a2ca14a
|
@ -163,7 +163,7 @@ def CMDRemove(alias):
|
||||||
if string == "yes":
|
if string == "yes":
|
||||||
RemoveAliases([alias])
|
RemoveAliases([alias])
|
||||||
else:
|
else:
|
||||||
print("'" + alias + "' alias or group does not deleted.")
|
print("'" + alias + "' alias or group was not deleted.")
|
||||||
else:
|
else:
|
||||||
print("error: '" + alias + "' alias or group does not exists.")
|
print("error: '" + alias + "' alias or group does not exists.")
|
||||||
|
|
||||||
|
@ -517,7 +517,7 @@ def CursesMain():
|
||||||
'G') or key_pressed == curses.KEY_F5:
|
'G') or key_pressed == curses.KEY_F5:
|
||||||
curses.curs_set(1)
|
curses.curs_set(1)
|
||||||
new_group_textpad = CursesTextpad(screen, 1, width - 8,
|
new_group_textpad = CursesTextpad(screen, 1, width - 8,
|
||||||
(height // 2) - 1, 4, "Enter name for new group:", "",
|
(height // 2) - 1, 4, "Enter alias name for new group:", "",
|
||||||
normal_text, highlight_text)
|
normal_text, highlight_text)
|
||||||
add_group = new_group_textpad.edit(CursesTextpadConfirm)
|
add_group = new_group_textpad.edit(CursesTextpadConfirm)
|
||||||
if not add_group.rstrip() == "":
|
if not add_group.rstrip() == "":
|
||||||
|
@ -557,7 +557,7 @@ def CursesMain():
|
||||||
if strings[position - 1] in groups:
|
if strings[position - 1] in groups:
|
||||||
while edit_string.rstrip() == "":
|
while edit_string.rstrip() == "":
|
||||||
string_textpad = CursesTextpad(screen, 3, width - 8,
|
string_textpad = CursesTextpad(screen, 3, width - 8,
|
||||||
(height // 2) - 1, 4, "Enter new aliases:",
|
(height // 2) - 1, 4, "Enter new aliases for existing group:",
|
||||||
(conf.get(strings[position - 1],
|
(conf.get(strings[position - 1],
|
||||||
"group") if conf.has_option(strings[position - 1],
|
"group") if conf.has_option(strings[position - 1],
|
||||||
"group") else ""),
|
"group") else ""),
|
||||||
|
|
Loading…
Reference in New Issue