mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +00:00
"halfway a line" is a very confusing phrase
If you Google for this phrase found in the Vim documentation you'll find almost exclusively hits from the Vim documentation. I think changing "halfway a line" to "halfway through a line" makes more sense. There seems to be an pervasive odd use of the word 'halfway' in the original docs which I'm updating everywhere.
This commit is contained in:
@@ -1084,7 +1084,7 @@ void diff_win_options(win_T *wp, int addbuf)
|
||||
wp->w_p_fdl = 0;
|
||||
foldUpdateAll(wp);
|
||||
|
||||
// make sure topline is not halfway a fold
|
||||
// make sure topline is not halfway through a fold
|
||||
changed_window_setting_win(wp);
|
||||
if (vim_strchr(p_sbo, 'h') == NULL) {
|
||||
do_cmdline_cmd((char_u *)"set sbo+=hor");
|
||||
@@ -1160,7 +1160,7 @@ void ex_diffoff(exarg_T *eap)
|
||||
|
||||
foldUpdateAll(wp);
|
||||
|
||||
// make sure topline is not halfway a fold
|
||||
// make sure topline is not halfway through a fold
|
||||
changed_window_setting_win(wp);
|
||||
|
||||
// Note: 'sbo' is not restored, it's a global option.
|
||||
@@ -1511,8 +1511,8 @@ int diff_check(win_T *wp, linenr_T lnum)
|
||||
// If there is no buffer with zero lines then there is no difference
|
||||
// any longer. Happens when making a change (or undo) that removes
|
||||
// the difference. Can't remove the entry here, we might be halfway
|
||||
// updating the window. Just report the text as unchanged. Other
|
||||
// windows might still show the change though.
|
||||
// through updating the window. Just report the text as unchanged.
|
||||
// Other windows might still show the change though.
|
||||
if (zero == FALSE) {
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user