Update git information after running ':!' - #1444
Conversation
|
Why not simply: --- a/src/prompt.c
+++ b/src/prompt.c
@@ -998,6 +998,7 @@ run_prompt_command(struct view *view, const char *argv[])
next->dir = NULL;
open_pager_view(view, OPEN_PREPARED | OPEN_WITH_STDERR);
+ watch_update(WATCH_EVENT_AFTER_COMMAND);
}
} else if (!strcmp(cmd, "goto")) {As a workaround, |
|
Because The name About the use of |
|
Right, thanks. The pager view only gets arguments when running a prepared command, so we could get rid of the watch_after_command variable and have: |
|
Yes. That also works. Maybe this would be safer. |
The current program won't update git information after running command with ':!'.
For example, a simple command running under the main view.
:!git tag testThe main view wasn't update until manual refresh.
Actually, any commands issued by ':!' would have the same problem, so this commit is to fix the problem.