summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 2f8d291bf..f96bca99d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1144,7 +1144,7 @@ main_loop(
# endif
)
# ifdef FEAT_AUTOCMD
- && !equalpos(last_cursormoved, curwin->w_cursor)
+ && !EQUAL_POS(last_cursormoved, curwin->w_cursor)
# endif
)
{
@@ -3557,8 +3557,11 @@ set_progpath(char_u *argv0)
&& vim_FullName(argv0, buf, MAXPATHL, TRUE) != FAIL)
val = buf;
}
+# endif
# endif
+
set_vim_var_string(VV_PROGPATH, val, -1);
+
# ifdef WIN32
vim_free(path);
# endif