mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 18:51:15 -03:00
Use parm_left_cursor and parm_right_cursor for bulk cursor motions.
Fixes #1448
This commit is contained in:
24
output.cpp
24
output.cpp
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user