fix: Prevent empty file list in commit prompt
- Ensure the commit prompt correctly handles when no files are staged - Clean up excessive whitespace in code for readability - Simplify the creation of the Form object by removing unnecessary newlines
This commit is contained in:
parent
d496d6b9de
commit
ae1a3bb400
@ -169,9 +169,7 @@ def get_marked_files(modified_files, staged_files):
|
|||||||
form_list.append("Unstaged:\n\n")
|
form_list.append("Unstaged:\n\n")
|
||||||
form_list.append(unstaged_checkbox)
|
form_list.append(unstaged_checkbox)
|
||||||
|
|
||||||
form = Form(
|
form = Form(form_list)
|
||||||
form_list
|
|
||||||
)
|
|
||||||
|
|
||||||
# Render the Form and get user input
|
# Render the Form and get user input
|
||||||
form.render()
|
form.render()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user