Use parm_left_cursor and parm_right_cursor for bulk cursor motions.

Fixes #1448
This commit is contained in:
ridiculousfish
2014-05-09 14:37:23 -07:00
parent 7f2c4cbf8a
commit fa68c2619f
3 changed files with 36 additions and 37 deletions

View File

@@ -418,13 +418,6 @@ int writeb(tputs_arg_t b)
return 0;
}
int writembs_internal(char *str)
{
CHECK(str, 1);
return tputs(str,1,&writeb)==ERR?1:0;
}
int writech(wint_t ch)
{
mbstate_t state;
@@ -725,3 +718,20 @@ const wchar_t *output_get_term()
{
return current_term.empty() ? L"<unknown>" : current_term.c_str();
}
void writembs_check(char *mbs, const char *mbs_name, const char *file, long line)
{
if (mbs != NULL)
{
tputs(mbs, 1, &writeb);
}
else
{
debug( 0, _(L"Tried to use terminfo string %s on line %ld of %s, which is undefined in terminal of type \"%ls\". Please report this error to %s"),
mbs_name,
line,
file,
output_get_term(),
PACKAGE_BUGREPORT);
}
}