Björn Linse
464ac8fe2a
screen: win_del_lines/win_ins_lines cleanup
2018-02-21 19:20:23 +01:00
Björn Linse
54c0bf6429
screen: remove dead code emulating terminals without scroll regions
...
This logic is now in tui/tui.c
2018-02-21 16:10:10 +01:00
Justin M. Keyes
2cfc1b055b
Merge #7939 "fix crash: 'spell' and long lines"
2018-02-11 13:04:39 +01:00
Björn Linse
5d8da126d0
ui/tui: highlighting refactor
...
Make HlAttr contain highlighting state for both color modes (cterm and rgb).
This allows us to implement termguicolors completely in the TUI.
Simplify some logic duplicated between ui.c and screen.c. Also avoid
some superfluous highlighting reset events.
2018-02-11 10:29:32 +01:00
Michael Brailsford
a6136e8b0b
screen.c: resolve neovim issue #7937
2018-02-07 13:46:37 -06:00
ckelsel
4b8d6caf48
vim-patch:8.0.0380: with 'linebreak' double wide char wraps badly
...
Problem: With 'linebreak' set and 'breakat' includes ">" a double-wide
character results in "<<" displayed.
Solution: Check for the character not to be replaced. (Ozaki Kiichi,
closes vim/vim#1456 )
38632faf63
2018-01-14 20:50:35 +08:00
Justin M. Keyes
e6beb60da5
:terminal : fix crash on resize ( #7547 )
...
closes #7538
Fix wrong window references from #7440
Remove some eager resizing. Still mostly doesn't address #4997 .
2017-11-13 02:06:32 +01:00
Justin M. Keyes
7b0ceb3726
Merge #7173 'api/ui: externalize cmdline'
...
closes #6162
2017-10-29 02:13:12 +02:00
Justin M. Keyes
bcf266de46
test: :terminal + numberwidth=9
2017-10-28 17:55:11 +02:00
Sam Wilson
b8a67551d8
terminal: Account for number column ( #5310 )
2017-10-27 17:59:54 -04:00
Björn Linse
bed0a3a842
ext_cmdline: implement redraw!
2017-10-26 20:29:08 +02:00
Justin M. Keyes
56eda2aa17
syntax: 'cursorline': revert priority change ( #7400 )
...
ref #7383
reverts d1874ab282
ref #6380
2017-10-16 08:18:03 +02:00
Justin M. Keyes
d1874ab282
syntax: 'cursorline': low priority #6380
2017-10-07 16:45:15 +02:00
Justin M. Keyes
7a832c312f
syntax: 'cursorcolumn', 'colorcolumn': low priority #6380
2017-10-07 16:31:34 +02:00
Justin M. Keyes
06f8ad5b2a
terminal.c: need maketitle() in terminal-mode
...
normal_redraw() usually takes care of this, but that doesn't happen
during terminal-mode.
regression by c484323dc6
steps to reproduce:
nvim -u NORC --cmd 'execute("set titlestring=" . $NVIM_LISTEN_ADDRESS) | set title | startinsert | !sleep 1' term://sh
closes #7248
2017-09-09 14:07:36 +02:00
Justin M. Keyes
f5938d9bcf
doc: screen_resize(): remove mention of "mustset"
...
"mustset" is from Vim term.c:set_shellsize(), not relevant here: we
behave as if mustset=true always.
2017-08-14 03:09:40 +02:00
Justin M. Keyes
34e5654f21
ui: disable 'lazyredraw' during ui_refresh.
...
Could also try `do_redraw = true` instead of save/restore `p_lz`, but
the nice thing about save/restore of `p_lz` is that it is "atomic".
The semantics of `do_redraw` are not clear to me.
Closes #4884
References #6202
References https://github.com/neovim/neovim/pull/6202#issuecomment-284379503
References #3929 #5692 #6157
References #5866
2017-08-14 03:07:50 +02:00
Justin M. Keyes
c87dbadc44
vim-patch:8.0.0235
...
Problem: Memory leak detected when running tests for diff mode.
Solution: Free p_extra_free.
b031c4ea04
2017-08-12 18:28:38 +02:00
Justin M. Keyes
a0c7e35eee
vim-patch:8.0.0524
...
Problem: Folds are messed up when 'encodin' is "utf-8".
Solution: Also set the fold character when it's not multi-byte.
8da1e6cedf
2017-08-12 17:39:07 +02:00
Justin M. Keyes
cddd4e613e
vim-patch:8.0.0518
...
Closes #7086
Problem: Storing a zero byte from a multi-byte character causes fold text
to show up wrong.
Solution: Avoid putting zero in ScreenLines. (Christian Brabandt,
closes vim/vim#1567 )
c6cd8409c2
2017-08-12 17:39:07 +02:00
Justin M. Keyes
49b671f8f1
vim-patch:8.0.0290 vim-patch:8.0.0394
...
vim-patch:8.0.0290: cursor positioning wrong if wide character wraps
Problem: If a wide character doesn't fit at the end of the screen line, and
the line doesn't fit on the screen, then the cursor position may
be wrong. (anliting)
Solution: Don't skip over wide character. (Christian Brabandt, closes vim/1408)
vim-patch:8.0.0394
Problem: Tabs are not aligned when scrolling horizontally and a Tab doesn't
fit. (Axel Bender)
Solution: Handle a Tab as a not fitting character. (Christian Brabandt)
Also fix that ":redraw" does not scroll horizontally to show the
cursor. And fix the test that depended on the old behavior.
abc39ab642
2017-08-12 17:39:07 +02:00
Justin M. Keyes
1bcb3ed0e2
vim-patch:8.0.0126
...
Problem: Display problem with 'foldcolumn' and a wide character.
(esiegerman)
Solution: Don't use "extra" but an allocated buffer. (Christian Brabandt,
closes vim/vim#1310 )
6270660611
2017-08-12 17:39:06 +02:00
Justin M. Keyes
df02f9cc37
vim-patch:8.0.0090 fix breakindent bug
...
(original Vim commit-message is bogus)
6c896867c4
2017-08-12 17:39:06 +02:00
Justin M. Keyes
c695443727
win_redr_status(): skip if wildmenu is showing
...
This might be too coarse, but it passes all tests ...
A more nuanced approach might be: only skip the windows whose
statuslines are overwritten by the wildmenu.
Closes #2255
Closes #7108
vim-patch:8.0.0710 N/A because of the changes in this commit.
2017-08-05 21:32:34 +02:00
ckelsel
ad07e9c7fc
vim-patch:8.0.0069
...
Problem: Compiler warning for self-comparison.
Solution: Define ONE_WINDOW and add vim/vim#ifdef.
a1f4cb93ba
2017-07-23 10:34:41 +08:00
Justin M. Keyes
105d680aea
Merge #6816 'TUI improvements'
...
Removed these commits (test-suite changes):
e2fba01910
7c809c4bc7
18e7cd9e97
2017-07-07 00:34:37 +02:00
Justin M. Keyes
1ae7744f42
lint
2017-07-07 00:33:57 +02:00
Björn Linse
7873660e1e
bufhl: some style cleanup
2017-06-24 11:09:10 +02:00
Björn Linse
ad73a70e5a
screen.c: fix lint
2017-06-14 20:31:14 +02:00
Björn Linse
16ae369474
screen.c: make more highlights window specific
2017-06-14 20:31:14 +02:00
Jonathan de Boyne Pollard
239b0aaf2e
tui: Remove the iTerm2 corner case.
2017-06-04 22:44:24 +01:00
Jonathan de Boyne Pollard
9475cf2cc6
screen: Correct commentary.
...
This "trick" is not conditional upon the type of UI.
2017-06-03 18:53:29 +01:00
Björn Linse
7d6af9985c
ui: cleanup UI_CALL wrappers
...
remove pointless control chars in the text stream
2017-05-10 16:14:12 +02:00
Björn Linse
4eb781ce1d
api: use generated events for popupmenu and tabline
2017-05-10 16:14:12 +02:00
Björn Linse
bfcaf36404
options: allow different highlights in windows
2017-05-08 12:41:39 +02:00
Justin M. Keyes
7044aa6e82
api/ext_tabline: curtab
should be a Tabpage handle.
2017-04-28 15:59:20 +02:00
Justin M. Keyes
6944abad2f
api/ext_tabline: List of Dicts.
2017-04-26 03:41:24 +02:00
Justin M. Keyes
00843902d3
api/ui: externalize tabline
...
- Work with a bool[] array parallel to the UIWidget enum.
- Rename some functions.
- Documentation.
2017-04-26 03:41:24 +02:00
Dongdong Zhou
88023d5123
api/ui: externalize tabline
2017-04-26 02:15:31 +02:00
Justin M. Keyes
15af803cce
Merge #6550 from ZyX-I/pvs-check-comment
2017-04-20 22:00:03 +02:00
James McCoy
c5d7eaf664
vim-patch:7.4.2152
...
Problem: No proper translation of messages with a count.
Solution: Use ngettext(). (Sergey Alyoshin)
ee695f787a
2017-04-19 22:24:58 -04:00
ZyX
c2f3e361c5
*: Add comment to all C files
2017-04-19 19:11:50 +03:00
ZyX
58300d70d2
*: Fix linter errors
2017-04-16 22:20:19 +03:00
ZyX
c0cbc50720
screen: Remove another portion of has_mbyte/friends-checking stuff
2017-04-16 21:43:25 +03:00
ZyX
e131194db7
screen: Remove unneeded condition
...
Already checked in outer if()
2017-04-16 21:43:23 +03:00
ZyX
48ad8e0ff1
screen: Silence NULL dereference false positive
...
Based on the loop condition when shl_flag is true cur != NULL.
2017-04-16 21:43:23 +03:00
ZyX
7cf4b0ac06
screen: Silence “buffer underflow” warning
2017-04-16 21:18:00 +03:00
ZyX
a65867542d
screen: Remove unneeded check
2017-04-16 21:17:08 +03:00
Felipe Oliveira Carvalho
2d72d85b23
refactor: pos_T macros to functions ( #6496 )
2017-04-11 22:44:48 +02:00
Yichao Zhou
bc6d868d00
'listchars': Whitespace
highlight group #6367
2017-04-03 14:10:40 +02:00