summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/nested_alias/TestNestedAlias.py
diff options
context:
space:
mode:
authorKate Stone <katherine.stone@apple.com>2016-07-14 22:00:04 +0000
committerKate Stone <katherine.stone@apple.com>2016-07-14 22:00:04 +0000
commit240414dc954fa0adc501242bc7a276fa5edb76fa (patch)
tree8d10c752da37c536970ea8f0feb63a244684bf79 /lldb/packages/Python/lldbsuite/test/functionalities/nested_alias/TestNestedAlias.py
parent6c35b2dea457cdcf5360d3ff8caf99868f2666c1 (diff)
downloadbcm5719-llvm-240414dc954fa0adc501242bc7a276fa5edb76fa.tar.gz
bcm5719-llvm-240414dc954fa0adc501242bc7a276fa5edb76fa.zip
Editing multi-line content in a terminal environment involves a lot of
trade-offs. When LLDB's multi-line editing support was first introduced for expressions / REPL contexts the behavior was as follows: * The Return key is treated as a line-break except at the end of the input buffer, where a completeness test is applied This worked well enough when writing code, and makes it trivial to insert new lines above code you've already typed. Just use cursor navigation to move up and type freely. Where it was awkward is that the gesture to insert a line break and end editing is conflated for most people. Sometimes you want Return to end the editing session and other times you want to insert a line break. This commit changes the behavior as follows: * The Return key is treated as the end of editing except at the end of the input buffer, where a completeness test is applied * The Meta+Return sequence is always treated as a line break. This is consistent with conventions in Facebook and elsewhere since Alt/Option+Return is often mapped to Meta+Return. The unfortunate exception is on macOS where this *can* be the case, but isn't by default. Sigh. Note that by design both before and after the patch pasting a Return character always introduces a line break. <rdar://problem/26886287> llvm-svn: 275482
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/nested_alias/TestNestedAlias.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud