[ncman] match rg/rs macros

This commit is contained in:
nick black 2021-12-09 18:32:01 -05:00 committed by nick black
parent 1ef4d27960
commit e061686eda
2 changed files with 4 additions and 1 deletions

View File

@ -106,7 +106,7 @@ broken by cluster breaks, terminated by the appropriate NUL terminator.
Control characters are rejected, except for a newline when the output plane
is in scrolling mode. A newline outside of scrolling mode will be rejected.
These functions output to the `ncplane`'s current cursor location. Aside from
These functions output to the **ncplane**'s current cursor location. Aside from
**ncplane_puttext()**, they *do not* move to the next line upon reaching the
right extreme of the containing plane. If the entirety of the content cannot be
output, they will output as much as possible.

View File

@ -636,6 +636,8 @@ putpara(struct ncplane* p, const char* text){
} macros[] = {
{ "aq]", "'", },
{ "dq]", "\"", },
{ "rg]", "®", },
{ "rs]", "\\", },
{ NULL, NULL, }
};
++curend;
@ -915,6 +917,7 @@ manloop(struct notcurses* nc, const char* arg){
ncplane_move_rel(page, 1, 0);
}
break;
// we can move down iff our last line is beyond the visible area
case 'j': case NCKEY_DOWN:
if(ncplane_y(page) + ncplane_dim_y(page) > ncplane_dim_y(stdn)){
ncplane_move_rel(page, -1, 0);