mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 8.2.3510: changes are only detected with one second accuracy
Problem: Changes are only detected with one second accuracy. Solution: Use the nanosecond time if possible. (Leah Neukirchen, closes #8873, closes #8875)
This commit is contained in:
committed by
Bram Moolenaar
parent
340dd0fbe4
commit
0a7984af56
@@ -1760,7 +1760,10 @@ nb_do_cmd(
|
||||
if (buf == NULL || buf->bufp == NULL)
|
||||
nbdebug((" invalid buffer identifier in setModtime\n"));
|
||||
else
|
||||
{
|
||||
buf->bufp->b_mtime = atoi((char *)args);
|
||||
buf->bufp->b_mtime_ns = 0;
|
||||
}
|
||||
// =====================================================================
|
||||
}
|
||||
else if (streq((char *)cmd, "setReadOnly"))
|
||||
|
Reference in New Issue
Block a user