comparison src/viminfo.c @ 18498:9e6d5a4abb1c v8.1.2243

patch 8.1.2243: typos in comments Commit: https://github.com/vim/vim/commit/32aa10203bd0b4b270def03311a4599f9ffdecc4 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 2 22:54:41 2019 +0100 patch 8.1.2243: typos in comments Problem: Typos in comments. Solution: Fix the typos. (Dominique Pelle, closes https://github.com/vim/vim/issues/5160) Also adjust formatting a bit.
author Bram Moolenaar <Bram@vim.org>
date Sat, 02 Nov 2019 23:00:06 +0100
parents 18d7337b6837
children de2d1820215a
comparison
equal deleted inserted replaced
18497:14e9f08eec14 18498:9e6d5a4abb1c
2305 } 2305 }
2306 } 2306 }
2307 else 2307 else
2308 { 2308 {
2309 // No timestamp, must be written by an older Vim. 2309 // No timestamp, must be written by an older Vim.
2310 // Assume all remaining buffers are older then 2310 // Assume all remaining buffers are older than
2311 // ours. 2311 // ours.
2312 while (count < num_marked_files 2312 while (count < num_marked_files
2313 && buflist_used < buflist->ga_len) 2313 && buflist_used < buflist->ga_len)
2314 { 2314 {
2315 buflist_buf = ((buf_T **)buflist->ga_data) 2315 buflist_buf = ((buf_T **)buflist->ga_data)
3199 // otherwise preserve permissions, making sure the group matches. 3199 // otherwise preserve permissions, making sure the group matches.
3200 if (mch_stat((char *)tempname, &tmp_st) >= 0) 3200 if (mch_stat((char *)tempname, &tmp_st) >= 0)
3201 { 3201 {
3202 if (st_old.st_uid != tmp_st.st_uid) 3202 if (st_old.st_uid != tmp_st.st_uid)
3203 // Changing the owner might fail, in which case the 3203 // Changing the owner might fail, in which case the
3204 // file will now owned by the current user, oh well. 3204 // file will now be owned by the current user, oh well.
3205 vim_ignored = fchown(fileno(fp_out), st_old.st_uid, -1); 3205 vim_ignored = fchown(fileno(fp_out), st_old.st_uid, -1);
3206 if (st_old.st_gid != tmp_st.st_gid 3206 if (st_old.st_gid != tmp_st.st_gid
3207 && fchown(fileno(fp_out), -1, st_old.st_gid) == -1) 3207 && fchown(fileno(fp_out), -1, st_old.st_gid) == -1)
3208 // can't set the group to what it should be, remove 3208 // can't set the group to what it should be, remove
3209 // group permissions 3209 // group permissions