We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is a similar issue to #134, reproduced like so:
$ printf '%s\n' 'a|' . %p | nvi -e
This should print a newline. A potential fix:
--- a/ex/ex_append.c +++ b/ex/ex_append.c @@ -179,7 +179,9 @@ ex_aci(SCR *sp, EXCMD *cmdp, enum which cmd) if (len != 0) cmdp->save_cmd = t; cmdp->save_cmdlen = len; - } + } else if ((cmdp->save_cmd[-1] == '\n' || cmdp->save_cmd[-1] == '|') && + db_append(sp, 1, lno++, NULL, 0)) + return (1); if (F_ISSET(sp, SC_EX_GLOBAL)) { if ((sp->lno = lno) == 0 && db_exist(sp, 1))
EDIT: Updated the patch for this scenario too:
g/enum/i\ <newline>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is a similar issue to #134, reproduced like so:
This should print a newline. A potential fix:
EDIT: Updated the patch for this scenario too:
The text was updated successfully, but these errors were encountered: