Mercurial > vim
comparison src/bufwrite.c @ 23229:b545334ae654 v8.2.2160
patch 8.2.2160: various typos
Commit: https://github.com/vim/vim/commit/8e7d6223f630690b72b387eaed704bf01f3f29d2
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 18 19:49:56 2020 +0100
patch 8.2.2160: various typos
Problem: Various typos.
Solution: Fix spelling mistakes. (closes https://github.com/vim/vim/issues/7494)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 18 Dec 2020 20:00:06 +0100 |
parents | d768cdd50602 |
children | 4d6c1b17f66a |
comparison
equal
deleted
inserted
replaced
23228:2c76cf162844 | 23229:b545334ae654 |
---|---|
2136 // If we started writing, finish writing. Also when an error was | 2136 // If we started writing, finish writing. Also when an error was |
2137 // encountered. | 2137 // encountered. |
2138 if (!checking_conversion) | 2138 if (!checking_conversion) |
2139 { | 2139 { |
2140 #if defined(UNIX) && defined(HAVE_FSYNC) | 2140 #if defined(UNIX) && defined(HAVE_FSYNC) |
2141 // On many journalling file systems there is a bug that causes both the | 2141 // On many journaling file systems there is a bug that causes both the |
2142 // original and the backup file to be lost when halting the system | 2142 // original and the backup file to be lost when halting the system |
2143 // right after writing the file. That's because only the meta-data is | 2143 // right after writing the file. That's because only the meta-data is |
2144 // journalled. Syncing the file slows down the system, but assures it | 2144 // journalled. Syncing the file slows down the system, but assures it |
2145 // has been written to disk and we don't lose it. | 2145 // has been written to disk and we don't lose it. |
2146 // For a device do try the fsync() but don't complain if it does not | 2146 // For a device do try the fsync() but don't complain if it does not |