diff --git a/line_reader.c b/line_reader.c index 63c3cfe..f9f346c 100644 --- a/line_reader.c +++ b/line_reader.c @@ -1435,3 +1435,4 @@ char ***lsh_split_piped_line(char *line) { commands[cmd_position] = NULL; return commands; } +// stash check diff --git a/ncurses_diff_viewer.c b/ncurses_diff_viewer.c index cef575c..36f2241 100644 --- a/ncurses_diff_viewer.c +++ b/ncurses_diff_viewer.c @@ -1216,15 +1216,7 @@ int push_commit(NCursesDiffViewer *viewer, int commit_index) { } } - // Start pushing animation immediately - viewer->sync_status = SYNC_STATUS_PUSHING_APPEARING; - viewer->animation_frame = 0; - viewer->text_char_count = 0; - - // Force render and refresh to show immediate animation start - render_status_bar(viewer); - wrefresh(viewer->status_bar_win); - refresh(); + // Animation already started by key handler for immediate feedback // Do the actual push work int result; @@ -2562,6 +2554,14 @@ int handle_ncurses_diff_input(NCursesDiffViewer *viewer, int key) { case 'P': // Push commit if (viewer->commit_count > 0 && viewer->selected_commit < viewer->commit_count) { + // Show immediate feedback + viewer->sync_status = SYNC_STATUS_PUSHING_APPEARING; + viewer->animation_frame = 0; + viewer->text_char_count = 0; + // Force a quick render to show "Pushing!" immediately + render_status_bar(viewer); + wrefresh(viewer->status_bar_win); + // Now do the actual push push_commit(viewer, viewer->selected_commit); } break; diff --git a/ncurses_diff_viewer.o b/ncurses_diff_viewer.o index b1cacfb..3d65e96 100644 Binary files a/ncurses_diff_viewer.o and b/ncurses_diff_viewer.o differ diff --git a/shell b/shell index 739e63a..5fc3217 100755 Binary files a/shell and b/shell differ