static void chg_r_to_Xor_X_(void) { int tempc, c; if (curwin->w_cursor.col) { if (!p_ri) dec_cursor(); tempc = gchar_cursor(); if ((c = toF_Xor_X_(tempc)) != 0) put_and_redo(c); if (!p_ri) inc_cursor(); } }
/// Change the char. under the cursor to a _X_ or _X type static void chg_c_to_X_or_X(void) { int tempc; tempc = gchar_cursor(); if (curwin->w_cursor.col + 1 < (colnr_T)STRLEN(get_cursor_line_ptr())) { inc_cursor(); if ((tempc == F_HE) && (F_is_TyB_TyC_TyD(SRC_EDT, AT_CURSOR))) { tempc = _HE_; dec_cursor(); put_and_redo((char_u)tempc); return; } dec_cursor(); } if ((tempc = toF_Xor_X_(tempc)) != 0) { put_and_redo((char_u)tempc); } }