aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-04-03 00:35:29 +0300
committerZyX <kp-pav@yandex.ru>2017-04-03 00:35:29 +0300
commit364709bedb17bfde4eb12d8f2c1427fe958dc6fc (patch)
tree54bfc68ab913d35a7c9c7a1694db2c45d21c20b9 /runtime
parentb10880dadcbd3b3ad368621f95a0f4be7e30dc0d (diff)
downloadrneovim-364709bedb17bfde4eb12d8f2c1427fe958dc6fc.tar.gz
rneovim-364709bedb17bfde4eb12d8f2c1427fe958dc6fc.tar.bz2
rneovim-364709bedb17bfde4eb12d8f2c1427fe958dc6fc.zip
fileio: Refactor errmsg handling
Adds os_strerror() result to a number of places. Also since I could not track where err\* variables are NULL and where they are not, using macros to make sure that all three variables are set at once. Removes #ifdef UNIX around the use of os_fsync, makes it use os_close in place of close in some places.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/options.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index 394e38f6e5..eedb7ce34d 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -2740,6 +2740,9 @@ A jump table for the options with a short description can be found at |Q_op|.
mode, so it may be undesirable in some situations. Be warned that
turning this off increases the chances of data loss after a crash.
+ Currently applies only to writing the buffer with e.g. |:w| and
+ |writefile()|.
+
*'gdefault'* *'gd'* *'nogdefault'* *'nogd'*
'gdefault' 'gd' boolean (default off)
global