[SERVER-3394] Syntax highlighting causes a line to be printed twice Created: 08/Jul/11  Updated: 12/Jul/16  Resolved: 08/Jul/11

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 1.9.1

Type: Bug Priority: Major - P3
Reporter: Kristina Chodorow (Inactive) Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

If you have a line that is longer than the width of the shell and scroll past an opening paren or brace, the line is printed again.

e.g.,

> db.control.count(.....................................................................)

if I ctrl-a to the beginning of the line and then scroll past the (, it becomes:

> db.control.count(.....................................................................)
> db.control.count(.....................................................................)



 Comments   
Comment by auto [ 09/Sep/11 ]

Author:

{u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: Fix off-by-one in linenoise SERVER-3394
Branch: master
https://github.com/mongodb/mongo/commit/ff418fdac2591664a9bb1fe76be854483b136e1c

Comment by auto [ 06/Sep/11 ]

Author:

{u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: Correct fix for SERVER-3394
Branch: master
https://github.com/mongodb/mongo/commit/55ca0b16581375a014e1ccb94a7b07fa83f0658a

Comment by auto [ 06/Sep/11 ]

Author:

{u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: Revert "fix highlighting in shell for lines longer than console width SERVER-3394"

This reverts commit fb88b80ce4353b7f25914f07210e9f328ae7f922.
Branch: master
https://github.com/mongodb/mongo/commit/0568f129bd64ac09ca917e6f2718fc215d0e8719

Comment by auto [ 08/Jul/11 ]

Author:

{u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: fix highlighting in shell for lines longer than console width SERVER-3394
Branch: master
https://github.com/mongodb/mongo/commit/fb88b80ce4353b7f25914f07210e9f328ae7f922

Generated at Thu Feb 08 03:02:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.