dundargoc
61205c1def
chore: fix typos ( #17755 )
...
Co-authored-by: Jordan Haine <jhaine@securitycompass.com >
2022-03-25 19:57:59 +01:00
zeertzjq
3b28bd57f9
Merge pull request #17821 from zeertzjq/vim-patch-cursorline
...
vim-patch:8.2.{4591,4614}: cursorline redrawing
2022-03-24 20:28:46 +08:00
bfredl
ed88ca7503
feat(input): enable <tab>/<c-i>, <cr>/<c-m>, <esc>/<c-[> pairs unconditionally
2022-03-24 11:02:39 +01:00
zeertzjq
3e9b4e917d
vim-patch:8.2.4591: cursor line not updated when a callback moves the cursor
...
Problem: Cursor line not updated when a callback moves the cursor.
Solution: Check if the cursor moved. (closes vim/vim#9970 )
e7a74d5375
redraw_after_callback() is N/A. Nvim handles timers on the main loop.
2022-03-24 16:08:59 +08:00
zeertzjq
a72f338d76
fix(float): do not switch window before deleting last listed buffer ( #17840 )
...
Just allow close_windows() to close the current window instead.
This fixes wrong working directory or autocommands not being triggered.
2022-03-24 14:53:20 +08:00
zeertzjq
ff82b2785f
fix(float): don't always switch window when deleting last listed buffer ( #17836 )
2022-03-24 11:56:22 +08:00
zeertzjq
2e36117840
test: add test for deleting last listed buffer when there are floats ( #17833 )
2022-03-24 09:28:23 +08:00
zeertzjq
a9359dca37
fix(float): make laststatus=1 behave consistently with floating windows
2022-03-23 09:07:21 +08:00
zeertzjq
3fdb7b528d
fix(float): handle buffer deletion with floating windows
2022-03-23 09:07:21 +08:00
zeertzjq
3539456f49
fix(win_close): count the window the be closed instead of curwin
2022-03-23 09:07:21 +08:00
zeertzjq
7735163652
fix(screen): do not do syntax highlighting at filler or folded lines ( #17818 )
2022-03-23 07:07:34 +08:00
bfredl
3c7e937a89
Merge pull request #17266 from famiu/feat/ui/global-statusline
...
feat(statusline): add global statusline
2022-03-17 20:16:39 +01:00
Famiu Haque
5ab1229174
feat: add support for global statusline
...
Ref: #9342
Adds the option to have a single global statusline for the current window at the bottom of the screen instead of a statusline at the bottom of every window. Enabled by setting `laststatus = 3`.
Due to the fact that statuslines at the bottom of windows are removed when global statusline is enabled, horizontal separators are used instead to separate horizontal splits. The horizontal separator character is configurable through the`horiz` item in `'fillchars'`. Separator connector characters are also used to connect the horizontal and vertical separators together, which are also configurable through the `horizup`, `horizdown`, `vertleft`, `vertright` and `verthoriz` items in `fillchars`.
The window separators are highlighted using the `WinSeparator` highlight group, which supersedes `VertSplit` and is linked to `VertSplit` by default in order to maintain backwards compatibility.
2022-03-18 00:21:41 +06:00
dundargoc
a7b1c8893c
chore: fix typos ( #17331 )
...
Co-authored-by: Hongyi Lyu <hongyi.lyu95@gmail.com >
Co-authored-by: Gregory Anders <greg@gpanders.com >
Co-authored-by: notomo <notomo.motono@gmail.com >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-03-10 14:34:55 +08:00
bfredl
a978d7689d
Merge pull request #17640 from lewis6991/virttextfix
...
fix(extmarks): fix signs
2022-03-09 13:41:13 +01:00
Lewis Russell
2ab2af598e
fix(extmarks): fix signs
...
Don't add sign extmarks to state->active. Instead when drawing signs,
perform a full line scan for sign marks. This allows decor_redraw_line
to be moved back inside the `!number_only` block in screen.c, which
prevents decor scans when redrawing the number column when
'relativenumber' is set.
Fixes : #17638
2022-03-08 22:08:57 +00:00
zeertzjq
2adc24b18b
test: add a Lua screen test for CursorLineNr in diff mode
...
Remove a useless test added in #14190
2022-03-08 10:11:20 +08:00
bfredl
72a04bda90
Merge pull request #16897 from lewis6991/signs
...
feat(decorations): support signs
2022-03-06 14:09:01 +01:00
Lewis Russell
30e4cc3b3f
feat(decorations): support signs
...
Add the following options to extmarks:
- sign_text
- sign_hl_group
- number_hl_group
- line_hl_group
- cursorline_hl_group
Note: ranges are unsupported and decorations are only applied to
start_row
2022-03-05 16:51:59 +00:00
Kirill Chibisov
f89fb41a7a
feat(tui): add support for CSI 4 : [2,4,5] m
...
This commit finishes support for colored and styled underlines adding
`CSI 4 : [2,4,5] m` support providing double, dashed, and dotted
underlines
Fixes #17362 .
2022-03-03 23:35:36 +03:00
zeertzjq
85de9b06ed
Merge pull request #17578 from zeertzjq/test-warning-poke
...
test: mention poke_eventloop() instead of wait()
2022-03-03 06:23:10 +08:00
zeertzjq
ede4eac61f
test: mention poke_eventloop() instead of wait()
2022-03-02 22:31:20 +08:00
bfredl
5ecb2cb539
fix(test): only use buffer completion in popupmenu timer test
2022-03-02 09:15:49 +01:00
zeertzjq
8bf3a3e303
Merge pull request #17432 from zeertzjq/vim-8.1.2336
...
vim-patch:8.1.2336,8.2.{4338,4401}: mapping cursor and redrawing patches
2022-02-27 10:51:11 +08:00
zeertzjq
41f309adeb
Merge pull request #17527 from zeertzjq/test-pending-win32
...
test: use helpers.pending_win32(pending) instead of iswin()
2022-02-26 21:17:38 +08:00
bfredl
8dd3d40f5c
Merge pull request #17472 from lewis6991/signcol_improvements
...
signcol improvements
2022-02-26 13:37:01 +01:00
zeertzjq
0545bd2180
test: use helpers.pending_win32(pending) instead of iswin()
2022-02-26 19:40:11 +08:00
Lewis Russell
9d53791cf8
fix(signcol): update cursor when signcol changes
...
Fixes #14195
2022-02-24 22:36:00 +00:00
Dundar Göc
82c5a02050
ci: skip tests that fail on windows
2022-02-20 10:22:39 +01:00
Jay Sandhu
80a3018a09
test: add some tests for :*map <expr>
...
Add tests for:
- Cursor position restored after :map expr
- Cursor position restored after :imap expr
- Error in :cmap expr handled correctly
Cherry-picked from #12837
2022-02-17 08:45:15 +08:00
Christian Clason
1b73ae653f
Merge pull request #16914 from godlygeek/fix_14587
...
fix(screen): don't put empty sign text in line number column
2022-02-13 11:41:17 +01:00
zeertzjq
4ca522fd02
test: convert some colorcolumn tests to Lua screen tests
2022-02-12 06:36:17 +08:00
Rom Grk
85ae04dbfd
fix: close floating windows when calling win_close()
2022-02-10 15:26:40 +00:00
bfredl
f0699f4356
Merge pull request #17279 from zeertzjq/state-enter-vpeekc
...
fix(event-loop): call vpeekc() directly first to check for character
2022-02-06 19:22:02 +01:00
zeertzjq
8215c05945
Merge pull request #17194 from zeertzjq/inccommand-prev-sub
...
fix(inccommand): do not change reg_prev_sub when previewing
2022-02-06 10:18:59 +08:00
zeertzjq
9b0363d365
vim-patch:8.2.1128: the write message mentions characters, but it's bytes
...
Problem: The write message mentions characters, but it's actually bytes.
Solution: Change "C" to "B" and "characters" to "bytes".
3f40ce78f5
2022-02-04 22:17:25 +08:00
zeertzjq
74998b0449
fix(event-loop): call vpeekc() directly first to check for character
...
Expand mappings first by calling `vpeekc()` directly.
2022-02-03 13:43:48 +08:00
bfredl
4b719e4a16
Merge pull request #17192 from zeertzjq/aucmd-redrawingdisabled
...
fix: set RedrawingDisabled before entering aucmd_win
2022-01-29 19:16:48 +01:00
bfredl
ca3e382a4f
Merge pull request #17183 from notomo/expose-extmark-right-gravity
...
feat(api): expose extmark right_gravity and end_right_gravity
2022-01-28 12:38:56 +01:00
zeertzjq
69f37197c0
fix(completion): update submode message when selecting from API ( #17022 )
2022-01-28 07:55:10 +08:00
bfredl
f1b91fcdbd
Merge pull request #17102 from zeertzjq/vim-8.2.1762
...
vim-patch:8.2.1762: when a timer uses :stopinsert completion isn't stopped
2022-01-27 08:31:17 +01:00
zeertzjq
d11bbacf0f
fix(inccommand): do not change reg_prev_sub when previewing
2022-01-25 16:18:58 +08:00
zeertzjq
dd21e21e97
fix: set RedrawingDisabled before entering aucmd_win
2022-01-25 09:44:37 +08:00
notomo
3d9ae9d2da
feat(api): expose extmark right_gravity and end_right_gravity
2022-01-24 09:52:13 +09:00
bfredl
e07a4b97f6
Merge pull request #16936 from zeertzjq/no-escape-csi
...
input: never escape CSI bytes and clean up related names and comments
2022-01-21 18:04:40 +01:00
zeertzjq
ff7c3d1275
fix(input): never escape CSI bytes
2022-01-21 18:08:56 +08:00
notomo
5971b86338
feat(api): expose extmark more details
2022-01-20 13:25:46 +09:00
zeertzjq
8e945c2524
vim-patch:8.2.1762: when a timer uses :stopinsert completion isn't stopped
...
Problem: When a timer uses :stopinsert Insert mode completion isn't
stopped. (Stanley Chan)
Solution: Call ins_compl_prep(ESC).
d0e1b7103c
2022-01-15 22:33:16 +08:00
zeertzjq
c7aa64631d
feat(completion): support selecting item via API from Lua mapping
2022-01-11 13:59:39 +08:00
Matt Wozniski
4ddd6c53bd
fix(screen): don't put empty sign text in line number column
...
When `signcolumn=number` but no sign on a given line has any text,
display the line's line number instead of the (empty) sign text in the
line number column.
2022-01-04 01:49:40 -05:00