cyy
1656367b90
win/l10n: add zh-* locale aliases #11963
2020-02-29 14:11:57 -08:00
Jan Edmund Lazo
4add2f4f89
vim-patch:8.0.1550: various small problems in source files
...
Problem: Various small problems in source files.
Solution: Fix the problems.
792f0e3659
2019-09-07 10:35:09 -04:00
Justin M. Keyes
07cc72ad5d
utf16_to_utf8: align with libuv
...
- take a size parameter
- return libuv error code
- handle error in caller only (avoid redundant messages)
53995a3825
4c945f4936
2019-08-15 00:28:41 +02:00
Justin M. Keyes
8727f7a6a4
utf8_to_utf16: align with libuv
...
- take a size parameter
- always NUL-terminate the result
- return libuv error code
- handle error in caller only (avoid redundant messages)
53995a3825
4c945f4936
2019-08-15 00:28:41 +02:00
Justin M. Keyes
8a56bd944a
Merge #10708 'remove DYNAMIC_ICONV'
...
closes #3457
2019-08-09 11:19:37 +02:00
Björn Linse
1f54f68732
lua: minimal UTF-16 support needed for LSP
2019-08-08 20:10:14 +02:00
Björn Linse
c0993ed343
lua: support getting UTF-32 and UTF-16 sizes of replaced text
2019-08-06 20:24:36 +02:00
erw7
d6f15ccc3c
remove DYNAMIC_ICONV
2019-08-06 12:44:22 +09:00
Justin M. Keyes
04e2ba85b1
doc [ci skip] #10129
...
- document lua vim.loop #10123
2019-06-10 15:53:42 +02:00
Andrej Zieger
80f40f0203
lint
2019-05-26 19:32:32 +02:00
Justin M. Keyes
ae846b41df
vim-patch:8.0.1496: VIM_CLEAR()
...
Problem: Clearing a pointer takes two lines.
Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi,
closes #2629 )
vim-patch:8.0.1481
2019-05-25 10:07:05 +02:00
Jan Edmund Lazo
09120df890
lint
2019-04-12 23:44:31 -04:00
Jan Edmund Lazo
210fa1e02d
vim-patch:8.1.1156: Unicode emoji and other image characters not recognized
...
Problem: Unicode emoji and other image characters not recognized.
Solution: Add ranges for musical notation, game pieces, etc. (Martin
Tournoij, closes vim/vim#4238 )
d489c9801b
2019-04-12 19:55:11 -04:00
Björn Linse
be8ebba325
Allow using internal popupmenu or ext_popupmenu for wildmenu
...
Deprecate ext_wildmenu. ext_popupmenu already contains more state (anchor
position), and will allow further expansion (info about items).
2019-03-16 19:53:21 +01:00
Justin M. Keyes
ed4132d7e9
cleanup: remove legacy enc_dbcs
global #9660
2019-03-02 02:33:36 +01:00
Justin M. Keyes
76562fa192
utf16_to_utf8: minor fixes
2019-02-25 23:47:54 +01:00
Björn Linse
820c81e638
multigrid: various cleanup (types, unused parameters)
...
Handle the rare case of full highlight table properly
2018-12-31 16:24:07 +01:00
Björn Linse
1a896bc93f
multigrid: avoid allocation when not ext_multigrid.
...
Move grid specific functions from mbyte.c to screen.c
2018-12-31 12:44:22 +01:00
Utkarsh Maheshwari
0bab611a96
multigrid: Add ScreenGrid as a param to multibyte functions
2018-12-31 12:44:22 +01:00
Utkarsh Maheshwari
911b731378
multigrid: Get rid of global ScreenLines and set_screengrid
2018-12-31 12:44:22 +01:00
ZviRackover
a3549286b2
lint: clean-up after parent commits
2018-08-31 22:47:50 +03:00
ZviRackover
1c03a06487
Refactor: remove mb_ptr2len_len, mb_ptr2cells and mb_ptr2cells_len
...
Remove occurences of these macros.
2018-08-31 22:45:10 +03:00
ZviRackover
2bddc4ca54
Remove occurences of mb_head_off
2018-08-15 22:02:33 +03:00
ZviRackover
999d33faf4
lint: clean up after parent commit
2018-08-14 08:38:38 +03:00
ZviRackover
7046258a38
Remove all occurrences of mb_off2cells
2018-08-13 18:07:40 +03:00
Jan Edmund Lazo
6853690c78
vim-patch:8.0.1433: illegal memory access after undo
...
Problem: Illegal memory access after undo. (Dominique Pelle)
Solution: Avoid the column becomes negative. (Christian Brabandt,
closes vim/vim#2533 )
95dbcbea6d
2018-08-09 15:32:13 -04:00
ZviRackover
10b6afd652
Remove all occurences of the mb_ptr2char macro
...
First step towards implemening issue #7401 .
The same can be done for all deprecated mb_ functions in follow-up
patches.
2018-08-06 20:48:07 +03:00
Jan Edmund Lazo
6ff892165a
vim-patch:8.0.0252: not properly recognizing word characters between 128 and 255
...
Problem: Characters below 256 that are not one byte are not always
recognized as word characters.
Solution: Make vim_iswordc() and vim_iswordp() work the same way. Add a test
for this. (Ozaki Kiichi)
4019cf90b8
2018-07-01 08:45:13 -04:00
Matt Kline
09cd4d0a43
use wchar_t instead of WCHAR #6998
...
wchar_t has better cross-platform support and seems to fix an issue
on MinGW when building with `-std=c99`.
2018-06-18 19:24:34 +02:00
Justin M. Keyes
4c3c04d03c
Merge #8526 from janlazo/vim-8.0.0451
2018-06-16 11:55:40 +02:00
Björn Linse
d8e18c96a9
screen: use UTF-8 representation
...
Store text in ScreenLines as UTF-8, so it can be sent as-is to the UI
layer. `utfc_char2bytes(off,buf)` is removed, as `ScreenLines[off]` now
already contains this representation.
To recover the codepoints that the screen arrays previously contained, use
utfc_ptr2char (or utf_ptr2char to ignore composing chars).
NB: This commit does NOT change how screen.c processes incoming UTF-8 data
from buffers, cmdline, messages etc. Any algorithm that operates on UCS-4
(like arabic shaping, treatment of non-printable chars)
is left unchanged for now.
2018-06-13 10:11:11 +02:00
Jan Edmund Lazo
3c7ea8d619
vim-patch:8.0.0451: some macros are in lower case
...
Problem: Some macros are in lower case.
Solution: Make a few more macros upper case. Avoid lower case macros use an
argument twice.
91acfffc1e
2018-06-12 02:00:50 -04:00
Justin M. Keyes
b7032cf1e3
win: enable DYNAMIC_ICONV
2018-06-06 00:58:58 +02:00
ZyX
a2f9188418
mbyte: Fix PVS/V557: do not do useless job
...
I do not see how array overrun is actually possible, but still EUC encodings may
do fine without a cycle.
2018-04-15 20:53:29 +03:00
ZyX
0d7daaad98
charset,*: Refactor transstr()
2018-04-09 01:39:33 +03:00
ZyX
a9b203d23f
*: Fix linter errors
...
Big function in expressions.c may be refactored, if I ever catch the idea how to
split it right.
2017-10-30 01:32:10 +03:00
ZyX
b935a12dab
ex_getln: Make use of new parser to color expressions
...
Retires g:Nvim_color_expr callback.
2017-10-29 16:32:13 +03:00
ZyX
6f22b5afad
mbyte: Lint some functions which are to be copied for symbolic tests
2017-10-15 19:13:52 +03:00
ZyX
fbe60af538
Merge branch 'master' into colored-cmdline
2017-07-31 02:05:02 +03:00
Justin M. Keyes
3b45f676c0
menu_get(): doc
2017-07-28 02:34:24 +02:00
Matthieu Coudron
dc685387a3
viml: introduce menu_get() function #6322
...
menu_get({path}, {modes}). See :h menu_get.
2017-07-28 01:27:58 +02:00
ZyX
69719e658c
Merge branch 'master' into colored-cmdline
2017-07-15 18:56:45 +03:00
Nikolai Aleksandrovich Pavlov
702c94aacf
mbyte: Fix crash when using multibyte chars in maparg() return ( #6986 )
...
This is a refactoring typo from #6947 .
Fixes #6985
Combined with #6947 where typo was made it also fixes vim/vim#1827 which was
present in Neovim.
2017-07-09 10:40:46 +02:00
ZyX
ac086d8ce2
mbyte: Refactor mb_unescape
...
Does not alter its usages.
2017-07-02 18:47:32 +03:00
ZyX
d82741f8c0
ex_getln: Add some more tests, fix some found errors
2017-06-27 01:34:54 +03:00
Justin M. Keyes
a9605bb4af
Merge #6460 from ZyX-I/1476-changes
...
Refactor functions which find character in a string
2017-05-08 13:45:14 +02:00
James McCoy
4f75e2f95c
utf16_to_utf8: Allocate space for converted string and NUL
...
References #6646
2017-05-03 20:27:39 -04:00
ZyX
c2f3e361c5
*: Add comment to all C files
2017-04-19 19:11:50 +03:00
ZyX
22fb9d8d25
Merge branch 'master' into 1476-changes
2017-04-10 19:12:56 +03:00
Björn Linse
c1cf033981
lint: fix clint errors around mb_tolower calls
2017-04-10 12:02:26 +02:00