Mercurial > vim
comparison src/netbeans.c @ 25953:d7e1cf30728c v8.2.3510
patch 8.2.3510: changes are only detected with one second accuracy
Commit: https://github.com/vim/vim/commit/0a7984af5601323fae7b3398f05a48087db7b767
Author: Leah Neukirchen <leah@vuxu.org>
Date: Thu Oct 14 21:27:55 2021 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 14 Oct 2021 22:30:04 +0200 |
parents | 038eb6d9003a |
children | fa8161b003f6 |
comparison
equal
deleted
inserted
replaced
25952:7eded0585ee0 | 25953:d7e1cf30728c |
---|---|
1758 else if (streq((char *)cmd, "setModtime")) | 1758 else if (streq((char *)cmd, "setModtime")) |
1759 { | 1759 { |
1760 if (buf == NULL || buf->bufp == NULL) | 1760 if (buf == NULL || buf->bufp == NULL) |
1761 nbdebug((" invalid buffer identifier in setModtime\n")); | 1761 nbdebug((" invalid buffer identifier in setModtime\n")); |
1762 else | 1762 else |
1763 { | |
1763 buf->bufp->b_mtime = atoi((char *)args); | 1764 buf->bufp->b_mtime = atoi((char *)args); |
1765 buf->bufp->b_mtime_ns = 0; | |
1766 } | |
1764 // ===================================================================== | 1767 // ===================================================================== |
1765 } | 1768 } |
1766 else if (streq((char *)cmd, "setReadOnly")) | 1769 else if (streq((char *)cmd, "setReadOnly")) |
1767 { | 1770 { |
1768 if (buf == NULL || buf->bufp == NULL) | 1771 if (buf == NULL || buf->bufp == NULL) |