Actions
Bug #8449
closedmdb inserts spurious newlines in wrapped input lines
Start date:
2017-06-29
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
Description
mdb inserts a (silent) newline into input buffers that exceed a line. As a result, if one attempts to cut-and-paste a multi-line mdb command, the command will be split at the terminal width boundary. Longtime mdb users have grown accustomed to this annoying behavior, developing all manners of coping strategies, but this is in fact a bug in mdb's use of the terminal: mdb is not properly detecting (and using) the automargin ("am") feature of the terminal. (Or more accurately, mdb is outthinking itself and convincing itself that it can't use the feature when it in fact should be.)
Updated by Electric Monk about 5 years ago
- Status changed from New to Closed
git commit 448027eb5d1a94f6ed4660dc460928b2d3b0ff11
commit 448027eb5d1a94f6ed4660dc460928b2d3b0ff11 Author: Bryan Cantrill <bryan@joyent.com> Date: 2017-07-18T01:57:55.000Z 8449 mdb inserts spurious newlines in wrapped input lines Reviewed by: Joshua M. Clulow <jmc@joyent.com> Reviewed by: Dave Pacheco <dap@joyent.com> Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Yuri Pankov <yuripv@gmx.com> Approved by: Dan McDonald <danmcd@joyent.com>
Actions