comparison src/fileio.c @ 21745:35921b7fc07a v8.2.1422

patch 8.2.1422: the Mac GUI implementation is outdated Commit: https://github.com/vim/vim/commit/097148e849136b49052b1b5123c714fb1d74db9b Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 11 21:58:20 2020 +0200 patch 8.2.1422: the Mac GUI implementation is outdated Problem: The Mac GUI implementation is outdated and probably doesn't even work. Solution: Remove the Mac GUI code. The MacVim project provides the supported Vim GUI version.
author Bram Moolenaar <Bram@vim.org>
date Tue, 11 Aug 2020 22:00:04 +0200
parents bb3f60b0aca0
children f55cba26348f
comparison
equal deleted inserted replaced
21744:805e8d18b78b 21745:35921b7fc07a
400 * Add the "read" and "write" bits for the user, otherwise we may 400 * Add the "read" and "write" bits for the user, otherwise we may
401 * not be able to write to the file ourselves. 401 * not be able to write to the file ourselves.
402 * Setting the bits is done below, after creating the swap file. 402 * Setting the bits is done below, after creating the swap file.
403 */ 403 */
404 swap_mode = (st.st_mode & 0644) | 0600; 404 swap_mode = (st.st_mode & 0644) | 0600;
405 #endif
406 #ifdef FEAT_CW_EDITOR
407 // Get the FSSpec on MacOS
408 // TODO: Update it properly when the buffer name changes
409 (void)GetFSSpecFromPath(curbuf->b_ffname, &curbuf->b_FSSpec);
410 #endif 405 #endif
411 #ifdef VMS 406 #ifdef VMS
412 curbuf->b_fab_rfm = st.st_fab_rfm; 407 curbuf->b_fab_rfm = st.st_fab_rfm;
413 curbuf->b_fab_rat = st.st_fab_rat; 408 curbuf->b_fab_rat = st.st_fab_rat;
414 curbuf->b_fab_mrs = st.st_fab_mrs; 409 curbuf->b_fab_mrs = st.st_fab_mrs;
3387 #endif 3382 #endif
3388 } 3383 }
3389 3384
3390 #if (defined(FEAT_DND) && defined(FEAT_GUI_GTK)) \ 3385 #if (defined(FEAT_DND) && defined(FEAT_GUI_GTK)) \
3391 || defined(FEAT_GUI_MSWIN) \ 3386 || defined(FEAT_GUI_MSWIN) \
3392 || defined(FEAT_GUI_MAC) \
3393 || defined(FEAT_GUI_HAIKU) \ 3387 || defined(FEAT_GUI_HAIKU) \
3394 || defined(PROTO) 3388 || defined(PROTO)
3395 /* 3389 /*
3396 * Shorten all filenames in "fnames[count]" by current directory. 3390 * Shorten all filenames in "fnames[count]" by current directory.
3397 */ 3391 */