diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-03-04 10:28:35 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-03-04 10:32:21 +1100 |
| commit | 2fd42fe5fcd7af52ce2306ea78a416b4ed0d06ef (patch) | |
| tree | 99619e5f6cc7932b16b68fadd9beca0eb17e472f /test/normal | |
| parent | 850f5610966c46eae86a97524dfe0ea9b9996af6 (diff) | |
Insert: Do not move end of line on open line (o/O)
Change the logic of open line commands so that if a selection lies
on the end of line character of the line from which we open a new
line, that selection does not move.
If we have two clients, A and B, with B's cursor on the eol character
of line L, and A hits `o` while on line L, B's cursor should stay
on the same (logical) line. Previous behaviour would make B's cursor
jump on the newly inserted line.
Diffstat (limited to 'test/normal')
| -rw-r--r-- | test/normal/open-multiple-above/cmd | 1 | ||||
| -rw-r--r-- | test/normal/open-multiple-above/in | 1 | ||||
| -rw-r--r-- | test/normal/open-multiple-above/out | 4 | ||||
| -rw-r--r-- | test/normal/open-multiple-below/cmd | 1 | ||||
| -rw-r--r-- | test/normal/open-multiple-below/in | 1 | ||||
| -rw-r--r-- | test/normal/open-multiple-below/out | 4 |
6 files changed, 12 insertions, 0 deletions
diff --git a/test/normal/open-multiple-above/cmd b/test/normal/open-multiple-above/cmd new file mode 100644 index 00000000..b07421f6 --- /dev/null +++ b/test/normal/open-multiple-above/cmd @@ -0,0 +1 @@ +3Obar<esc> diff --git a/test/normal/open-multiple-above/in b/test/normal/open-multiple-above/in new file mode 100644 index 00000000..257cc564 --- /dev/null +++ b/test/normal/open-multiple-above/in @@ -0,0 +1 @@ +foo diff --git a/test/normal/open-multiple-above/out b/test/normal/open-multiple-above/out new file mode 100644 index 00000000..de926059 --- /dev/null +++ b/test/normal/open-multiple-above/out @@ -0,0 +1,4 @@ +bar +bar +bar +foo diff --git a/test/normal/open-multiple-below/cmd b/test/normal/open-multiple-below/cmd new file mode 100644 index 00000000..e4be15d6 --- /dev/null +++ b/test/normal/open-multiple-below/cmd @@ -0,0 +1 @@ +3obar<esc> diff --git a/test/normal/open-multiple-below/in b/test/normal/open-multiple-below/in new file mode 100644 index 00000000..257cc564 --- /dev/null +++ b/test/normal/open-multiple-below/in @@ -0,0 +1 @@ +foo diff --git a/test/normal/open-multiple-below/out b/test/normal/open-multiple-below/out new file mode 100644 index 00000000..1458786c --- /dev/null +++ b/test/normal/open-multiple-below/out @@ -0,0 +1,4 @@ +foo +bar +bar +bar |
