mirror of
https://github.com/neovim/neovim.git
synced 2025-10-16 23:06:14 +00:00
refactor: remove long
long is 32-bits even on 64-bit windows which makes the type suboptimal for a codebase meant to be cross-platform.
This commit is contained in:
@@ -2293,8 +2293,8 @@ void showmatch(int c)
|
||||
{
|
||||
pos_T *lpos;
|
||||
colnr_T vcol;
|
||||
long *so = curwin->w_p_so >= 0 ? &curwin->w_p_so : &p_so;
|
||||
long *siso = curwin->w_p_siso >= 0 ? &curwin->w_p_siso : &p_siso;
|
||||
OptInt *so = curwin->w_p_so >= 0 ? &curwin->w_p_so : &p_so;
|
||||
OptInt *siso = curwin->w_p_siso >= 0 ? &curwin->w_p_siso : &p_siso;
|
||||
char *p;
|
||||
|
||||
// Only show match for chars in the 'matchpairs' option.
|
||||
@@ -2338,8 +2338,8 @@ void showmatch(int c)
|
||||
|
||||
pos_T mpos = *lpos; // save the pos, update_screen() may change it
|
||||
pos_T save_cursor = curwin->w_cursor;
|
||||
long save_so = *so;
|
||||
long save_siso = *siso;
|
||||
OptInt save_so = *so;
|
||||
OptInt save_siso = *siso;
|
||||
// Handle "$" in 'cpo': If the ')' is typed on top of the "$",
|
||||
// stop displaying the "$".
|
||||
if (dollar_vcol >= 0 && dollar_vcol == curwin->w_virtcol) {
|
||||
|
Reference in New Issue
Block a user