mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -992,22 +992,22 @@ void ex_delmarks(exarg_T *eap)
|
||||
void ex_jumps(exarg_T *eap)
|
||||
{
|
||||
int i;
|
||||
char_u *name;
|
||||
char *name;
|
||||
|
||||
cleanup_jumplist(curwin, true);
|
||||
// Highlight title
|
||||
msg_puts_title(_("\n jump line col file/text"));
|
||||
for (i = 0; i < curwin->w_jumplistlen && !got_int; i++) {
|
||||
if (curwin->w_jumplist[i].fmark.mark.lnum != 0) {
|
||||
name = fm_getname(&curwin->w_jumplist[i].fmark, 16);
|
||||
name = (char *)fm_getname(&curwin->w_jumplist[i].fmark, 16);
|
||||
|
||||
// Make sure to output the current indicator, even when on an wiped
|
||||
// out buffer. ":filter" may still skip it.
|
||||
if (name == NULL && i == curwin->w_jumplistidx) {
|
||||
name = vim_strsave((char_u *)"-invalid-");
|
||||
name = xstrdup("-invalid-");
|
||||
}
|
||||
// apply :filter /pat/ or file name not available
|
||||
if (name == NULL || message_filtered((char *)name)) {
|
||||
if (name == NULL || message_filtered(name)) {
|
||||
xfree(name);
|
||||
continue;
|
||||
}
|
||||
@@ -1022,7 +1022,7 @@ void ex_jumps(exarg_T *eap)
|
||||
i > curwin->w_jumplistidx ? i - curwin->w_jumplistidx : curwin->w_jumplistidx - i,
|
||||
curwin->w_jumplist[i].fmark.mark.lnum, curwin->w_jumplist[i].fmark.mark.col);
|
||||
msg_outtrans((char *)IObuff);
|
||||
msg_outtrans_attr((char *)name,
|
||||
msg_outtrans_attr(name,
|
||||
curwin->w_jumplist[i].fmark.fnum == curbuf->b_fnum
|
||||
? HL_ATTR(HLF_D) : 0);
|
||||
xfree(name);
|
||||
@@ -1710,7 +1710,7 @@ void mark_mb_adjustpos(buf_T *buf, pos_T *lp)
|
||||
FUNC_ATTR_NONNULL_ALL
|
||||
{
|
||||
if (lp->col > 0 || lp->coladd > 1) {
|
||||
const char_u *const p = ml_get_buf(buf, lp->lnum, false);
|
||||
const char_u *const p = (char_u *)ml_get_buf(buf, lp->lnum, false);
|
||||
if (*p == NUL || (int)STRLEN(p) < lp->col) {
|
||||
lp->col = 0;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user