<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [PATCH] Additional commands for multi-line mode"
   href="https://llvm.org/bugs/show_bug.cgi?id=27365">27365</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[PATCH] Additional commands for multi-line mode
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>bawr@hszm.pl
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16220" name="attach_16220" title="Editline patch.">attachment 16220</a> <a href="attachment.cgi?id=16220&action=edit" title="Editline patch.">[details]</a></span>
Editline patch.

This patch makes two small changes to the multi-line debugger mode, aimed at
fixing some usability issues with the Swift REPL, which uses this mode
exclusively.

1. A command (bound to Alt-Enter by default) to immediately execute a buffer,
if possible, as opposed to breaking the current line.

2. Two commands (bound to Alt-Up/Down by default) to immediately move around in
command history, without having to scroll through multiple lines with keyboard
arrows. Because the REPL uses multi-line mode, it's not possible to achieve
this using standard editline bindings.

I don't particularly care about having specific keys bound by default, this can
be done in .editrc, if suitable commands are available in the first place.

Note: The comment in the line-break command states that "the completion test is
allowed to change the input lines when complete", but the command itself makes
no effort to redisplay them if they actually *are* changed.

I've opted to do this in BufferRun, but since I'm not sure about the approach,
I haven't changed any pre-existing commands.

If this needs cleaning up or some follow-up explanation, do ask.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>