Kwon-Young
d0c8dfc578
vim-patch:8.0.1089: range count in user command
...
Problem: Cannot get range count in user command.
Solution: Add <range> argument.
c168bd4bd3
close #8946
2018-09-13 10:20:34 +02:00
Justin M. Keyes
31c3d54668
UI/cleanup: Remove most redraw_later_clear() calls
...
Vim :! may "mess up the screen" because of e.g. switching between cooked
mode, but Nvim just uses pipes. So maybe we can avoid these
redraw_later_clear() CYA calls.
2018-09-12 08:30:26 +02:00
Jan Edmund Lazo
8a845ab3ef
vim-patch:8.1.0219: expanding ## fails to escape backtick
...
Problem: Expanding ## fails to escape backtick.
Solution: Escape a backtick in a file name. (closes vim/vim#3257 )
2c8c681bfc
2018-09-11 22:42:17 -04:00
Justin M. Keyes
55a721512b
Merge #8953 from janlazo/vim-8.0.1190
2018-09-05 09:45:14 +02:00
Jan Edmund Lazo
9584674569
vim-patch:8.0.1595: no autocommand triggered before exiting
...
Problem: No autocommand triggered before exiting.
Solution: Add the ExitPre autocommand event.
12a96de430
2018-09-04 22:40:48 -04:00
Jan Edmund Lazo
4d6ba4d06a
vim-patch:8.0.1190: unusable after opening new window in BufWritePre event
...
Problem: Vim becomes unusable after opening new window in BufWritePre
event.
Solution: Call not_exiting(). (Martin Tournoij, closes vim/vim#2205 )
Also for "2q" when a help window is open. Add a test.
2c33d7bb69
2018-09-04 22:40:48 -04:00
Jan Edmund Lazo
bd7371f460
vim-patch:8.1.0333: :mkview does not restore cursor properly after "$"
...
Problem: :mkview does not restore cursor properly after "$". (Dominique
Pelle)
Solution: Position the cursor with "normal! $".
92c1b69641
2018-09-02 23:30:42 -04:00
Jan Edmund Lazo
012cd35bfb
vim-patch:8.0.1151: "vim -c startinsert!" doesn't append ( #8886 )
...
Problem: "vim -c startinsert!" doesn't append.
Solution: Correct line number on startup. (Christian Brabandt, closes vim/vim#2117 )
09ca932f8e
2018-08-22 19:33:06 +02:00
Jan Edmund Lazo
ee51061b8c
lint
2018-08-20 23:49:34 -04:00
Jan Edmund Lazo
6f55aa3502
undo: update undo_time() function signature
...
sec,file,absolute (params) are bool.
Fix callers and local variables of undo_time().
2018-08-20 23:49:34 -04:00
Jan Edmund Lazo
0223c81457
lint
2018-08-17 22:07:55 -04:00
Jan Edmund Lazo
3d71366af1
vim-patch:8.0.1090: cannot get the text under the cursor like v:beval_text
...
Problem: cannot get the text under the cursor like v:beval_text
Solution: Add <cexpr>.
65f084749b
2018-08-17 17:36:40 -04:00
Jan Edmund Lazo
f53c95e7a8
vim-patch:8.1.0159: completion for user names does not work for a prefix.
...
Problem: Completion for user names does not work if a prefix is also a full
matching name. (Nazri Ramliy)
Solution: Accept both full and partial matches. (Dominique Pelle)
6c5d104302
2018-08-17 17:36:40 -04:00
Jan Edmund Lazo
f5b7fd5fa3
ex_docmd: forceit,usefilter are bool
2018-08-17 09:07:15 -04:00
Jan Edmund Lazo
1dcdac013e
vim-patch:8.0.1649: no completion for argument list commands
...
Problem: No completion for argument list commands.
Solution: Add arglist completion. (Yegappan Lakshmanan, closes vim/vim#2706 )
cd43effeca
2018-08-16 11:47:56 -04:00
Jan Edmund Lazo
be552c8340
vim-patch:8.0.1231: expanding file name drops dash
...
Problem: Expanding file name drops dash. (stucki)
Solution: Use the right position. (Christian Brabandt, closes vim/vim#2184 )
c312b8b87a
2018-08-16 11:08:00 -04:00
Jan Edmund Lazo
6531b175ad
vim-patch:8.0.0878: no completion for :mapclear
...
Problem: No completion for :mapclear.
Solution: Add completion (Nobuhiro Takasaki et al. closes vim/vim#1943 )
cae92dc3d5
2018-08-16 10:42:13 -04:00
ZviRackover
22311457ab
refactor: Replace vim_strrchr() with strrchar() ( #8718 )
...
ref #1474
2018-08-11 16:14:10 +02:00
ZviRackover
5cecd7a93a
style: fixing minor issues noted in code review.
2018-08-06 22:27:10 +03: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
44cb491f6e
globals: virtual_op is TriState
2018-08-01 15:28:49 -04:00
Justin M. Keyes
2000b6a64a
Merge #8589 'VimL: Remove legacy v:xx aliases'
2018-07-23 03:18:10 +02:00
Björn Linse
1adb01c120
ui: use line-based rather than char-based updates in screen.c
...
Add ext_newgrid and ext_hlstate extensions. These use predefined
highlights and line-segment based updates, for efficiency and
simplicity.. The ext_hlstate extension in addition allows semantic
identification of builtin and syntax highlights.
Reimplement the old char-based updates in the remote UI layer, for
compatibility. For the moment, this is still the default. The bulitin
TUI uses the new line-based protocol.
cmdline uses curwin cursor position when ext_cmdline is active.
2018-07-21 13:21:58 +02:00
ZyX
eaf2a25f12
*: Replace b_changedtick with new always-inline functions
...
Ref #8474
2018-06-22 00:44:31 +03:00
Justin M. Keyes
18710e7720
Merge #8596 from janlazo/vim-8.0.0615
2018-06-20 00:58:33 +02:00
Jan Edmund Lazo
14e70878c5
lint
2018-06-19 16:12:55 -04:00
Jan Edmund Lazo
3cc7462a0c
vim-patch:8.0.0546: swap file exists briefly when opening the command window ( #8588 )
...
Problem: Swap file exists briefly when opening the command window.
Solution: Set the noswapfile command modifier before splitting the window.
(James McCoy, closes vim/vim#1620 )
3bab93998d
2018-06-19 21:22:34 +02:00
Jan Edmund Lazo
6d4d271694
vim-patch:8.0.0615: using % with :hardcopy wrongly escapes spaces
...
Problem: Using % with :hardcopy wrongly escapes spaces. (Alexey Muranov)
Solution: Expand % differently. (Christian Brabandt, closes vim/vim#1682 )
bf15b8d78b
2018-06-19 15:08:43 -04:00
Jan Edmund Lazo
b148213366
vim-patch:8.0.0598: building with gcc 7.1 yields new warnings ( #8585 )
...
Problem: Building with gcc 7.1 yields new warnings.
Solution: Initialize result. (John Marriott)
9e0f6ec076
2018-06-19 10:48:25 +02:00
Justin M. Keyes
9c2099d585
Ex mode: use getexline() instead of getexmodeline()
...
This changes Ex mode (Q, -e) to work like Vim's "improved Ex mode"
(gQ, -E). That brings some small behavior differences, but should not
impact most Ex scripts (unless, for example, they depend on mappings
being disabled--but that can be solved for -e by skipping user config).
Before this change:
* the screen test hangs.
After this change:
* Q acts like gQ.
* -e/-es differs from -E/-Es only in its treatment of stdin.
This moves towards potentially removing getexmodeline().
(HINT: That does NOT mean "removing Ex mode", it means removing the
Vi-compatible Ex mode, which differs from Vim's "improved Ex mode" only
in some minor details (e.g. mappings are disabled).)
ref #1089 :-)~
2018-06-17 14:50:53 +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
Jan Edmund Lazo
bbb88607c9
vim-patch:8.0.0466: still macros that should be all-caps ( #8510 )
...
Problem: There are still a few macros that should be all-caps.
Solution: Make a few more macros all-caps.
8820b48654
2018-06-10 12:24:00 +02:00
KunMing Xie
77a2eaf08b
vim-patch:8.0.0515: ml_get errors in silent Ex mode ( #8452 )
...
Problem: ml_get errors in silent Ex mode. (Dominique Pelle)
Solution: Clear valid flags when setting the cursor. Set the topline when
not in full screen mode.
d5d37537d1
2018-05-30 09:11:52 +02:00
Justin M. Keyes
137eedb4ed
API: nvim_get_commands(): return Dictionary
2018-05-12 07:29:21 +02:00
Justin M. Keyes
738bffea2c
API: nvim_get_commands(): more attributes
...
Support more :command attributes:
-bang
-bar
-register
2018-05-11 13:50:00 +02:00
Justin M. Keyes
9fa7727ce0
API: nvim_get_commands(): always return keys
...
- Always return all keys, with at least NIL value.
- Require `opts` param to be {"builtin":false}
- Validate `opts` param
2018-05-11 13:20:43 +02:00
Nimit Bhardwaj
25b6304840
API: nvim_get_commands()
2018-05-11 13:20:19 +02:00
Justin M. Keyes
53f11dcfc7
Merge #8218 'Fix errors reported by PVS'
...
closes #4983
2018-04-27 09:25:02 +02:00
Justin M. Keyes
ad60927d09
Merge #8304 "default to 'nofsync'"
2018-04-24 02:51:07 +02:00
Nimit Bhardwaj
51af911a27
inccommand: do not execute trailing commands #8256
...
fix #7494
2018-04-21 13:06:46 +02:00
Justin M. Keyes
498731615c
IO: let 'fsync' option control more cases
...
Vim has the 'swapsync' option which we removed in 62d137ce09
.
Instead let 'fsync' control swapfile-fsync.
These cases ALWAYS force fsync (ignoring 'fsync' option):
- Idle (CursorHold).
- Exit caused by deadly signal.
- SIGPWR signal.
- Explicit :preserve command.
2018-04-21 12:51:27 +02:00
ZyX
cad616c94e
ex_docmd: Fix PVS/V547: condition was already checked in surr. if()
2018-04-15 20:07:07 +03:00
ZyX
d7e4449adb
ex_docmd: Fix PVS/V547: due to short-circuiting name_len is never > 4
2018-04-15 20:07:07 +03:00
geekodour
1e71978cf0
events: VimSuspend, VimResume #8280
...
closes #3648
ref #5959
2018-04-15 15:05:02 +02:00
Justin M. Keyes
7362ca4430
cleanup: remove main_start_gui()
2018-04-11 01:58:42 +02:00
ZyX
201a4ef11c
*: Replace did_throw checks with current_exception checks
...
Removes obsolete did_throw after that.
2018-03-25 15:13:05 +03:00
ZyX
79b4b6fc86
*: Make sure that !did_throw implies !current_exception
...
Fixes #7876
2018-03-25 14:50:48 +03:00
Justin M. Keyes
6a7c904648
Merge #4419 'implement <Cmd> key'
2018-03-24 17:45:48 +01:00
Justin M. Keyes
7ae4144208
refactor/rename: path_try_shorten_fname()
2018-03-24 14:17:40 +01:00
Justin M. Keyes
998a16c926
refactor/rename: path_is_absolute()
2018-03-24 14:17:40 +01:00