summaryrefslogtreecommitdiff
path: root/src/normal.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.0.1323: mouse events in a terminal window may cause endless loopv8.0.1323Bram Moolenaar2017-11-201-1/+3
| | | | | | Problem: Mouse events in a terminal window may cause endless loop. Solution: Adjust position computation. Don't stuff a mouse event when coming from normal_cmd().
* patch 8.0.1312: balloon_show() only works in terminal when compiled with GUIv8.0.1312Bram Moolenaar2017-11-181-1/+1
| | | | | | Problem: balloon_show() only works in terminal when compiled with the GUI. Solution: Add FEAT_BEVAL_GUI and refactor to move common code out of the GUI specific file.
* patch 8.0.1309: cannot use 'balloonexpr' in a terminalv8.0.1309Bram Moolenaar2017-11-181-1/+17
| | | | | | Problem: Cannot use 'balloonexpr' in a terminal. Solution: Add 'balloonevalterm' and add code to handle mouse movements in a terminal. Initial implementation for Unix with GUI.
* patch 8.0.1215: newer gcc warns for implicit fallthroughv8.0.1215Bram Moolenaar2017-10-241-4/+5
| | | | | Problem: Newer gcc warns for implicit fallthrough. Solution: Consistently use a FALLTHROUGH comment. (Christian Brabandt)
* patch 8.0.1201: "yL" is affected by 'scrolloff'v8.0.1201Bram Moolenaar2017-10-151-1/+3
| | | | | Problem: "yL" is affected by 'scrolloff'. (Eli the Bearded) Solution: Don't use 'scrolloff' when an operator is pending.
* patch 8.0.1138: click in window toolbar starts Visual modev8.0.1138Bram Moolenaar2017-09-231-0/+6
| | | | | Problem: Click in window toolbar starts Visual mode. Solution: Add the MOUSE_WINBAR flag.
* patch 8.0.1136: W_WIDTH() is always the samev8.0.1136Bram Moolenaar2017-09-221-11/+11
| | | | | Problem: W_WIDTH() is always the same. Solution: Expand the macro.
* patch 8.0.1123: cannot define a toolbar for a windowv8.0.1123Bram Moolenaar2017-09-171-2/+2
| | | | | Problem: Cannot define a toolbar for a window. Solution: Add a window-local toolbar.
* patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefsv8.0.1118Bram Moolenaar2017-09-161-44/+7
| | | | | | Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always enabled and only adds 7% to the binary size of the tiny build. Solution: Graduate FEAT_WINDOWS.
* patch 8.0.1113: can go to Insert mode from Terminal-Normal modev8.0.1113Bram Moolenaar2017-09-161-2/+13
| | | | | | Problem: Can go to Insert mode from Terminal-Normal mode. Solution: Prevent :startinsert and "VA" to enter Insert mode. (Yasuhiro Matsumoto, closes #2092)
* patch 8.0.1091: test for <cexpr> fails without +balloon_eval featurev8.0.1091Bram Moolenaar2017-09-101-24/+0
| | | | | Problem: Test for <cexpr> fails without +balloon_eval feature. Solution: Remove #ifdefs.
* patch 8.0.0998: strange error when using K while only spaces are selectedv8.0.0998Bram Moolenaar2017-08-261-0/+5
| | | | | | Problem: Strange error when using K while only spaces are selected. (Christian J. Robinson) Solution: Check for blank argument.
* patch 8.0.0962: crash with virtualedit and joining linesv8.0.0962Bram Moolenaar2017-08-191-0/+6
| | | | | | Problem: Crash with virtualedit and joining lines. (Joshua T Corbin, Neovim #6726) Solution: When using a mark check that coladd is valid.
* patch 8.0.0948: crash if timer closes window while dragging status linev8.0.0948Bram Moolenaar2017-08-161-2/+5
| | | | | | Problem: Crash if timer closes window while dragging status line. Solution: Check if the window still exists. (Yasuhiro Matsumoto, closes #1979)
* patch 8.0.0947: entering terminal using C-O C-W C-W goes to Insert modev8.0.0947Bram Moolenaar2017-08-161-0/+6
| | | | | | Problem: When in Insert mode and using CTRL-O CTRL-W CTRL-W to move to a termainal window, get in a weird Insert mode. Solution: Don't go to Insert mode in a terminal window. (closes #1977)
* patch 8.0.0877: using CTRL-\ CTRL-N in terminal is inconsistentv8.0.0877Bram Moolenaar2017-08-061-3/+3
| | | | | Problem: Using CTRL-\ CTRL-N in terminal is inconsistent. Solution: Stay in Normal mode.
* patch 8.0.0874: can't build with terminal featurev8.0.0874Bram Moolenaar2017-08-051-1/+1
| | | | | Problem: Can't build with terminal feature. Solution: Include change to term_use_loop(). (Dominique Pelle)
* patch 8.0.0872: no mouse scroll with a terminal windowv8.0.0872Bram Moolenaar2017-08-051-0/+5
| | | | | | | | Problem: Using mouse scroll while a terminal window has focus and the mouse pointer is on another window does not work. Same for focus in a non-terminal window ahd the mouse pointer is over a terminal window. Solution: Send the scroll action to the right window.
* patch 8.0.0858: can exit while a terminal is still running a jobv8.0.0858Bram Moolenaar2017-08-031-2/+2
| | | | | Problem: Can exit while a terminal is still running a job. Solution: Consider a buffer with a running job like a changed file.
* patch 8.0.0826: cannot use text objects in Terminal modev8.0.0826Bram Moolenaar2017-07-311-8/+8
| | | | | | Problem: Cannot use text objects in Terminal mode. Solution: Check for pending operator and Visual mode first. (Yasuhiro Matsumoto, closes #1906)
* patch 8.0.0813: cannot use a terminal window while the job is runningv8.0.0813Bram Moolenaar2017-07-301-0/+8
| | | | | | Problem: Cannot use Vim commands in a terminal window while the job is running. Solution: Implement Terminal Normal mode.
* patch 8.0.0725: a terminal window does not handle keyboard inputv8.0.0725Bram Moolenaar2017-07-161-1/+4
| | | | | Problem: A terminal window does not handle keyboard input. Solution: Add terminal_loop(). ":term bash -i" sort of works now.
* patch 8.0.0647: syntax highlighting can make cause a freezev8.0.0647Bram Moolenaar2017-06-181-0/+8
| | | | | Problem: Syntax highlighting can make cause a freeze. Solution: Apply 'redrawtime' to syntax highlighting, per window.
* patch 8.0.0643: when a pattern search is slow Vim becomes unusablev8.0.0643Bram Moolenaar2017-06-171-2/+2
| | | | | | | | Problem: When 'hlsearch' is set and matching with the last search pattern is very slow, Vim becomes unusable. Cannot quit search by pressing CTRL-C. Solution: When the search times out set a flag and don't try again. Check for timeout and CTRL-C in NFA loop that adds states.
* patch 8.0.0609: some people still don't know how to quitv8.0.0609Bram Moolenaar2017-06-041-1/+1
| | | | | | Problem: For some people the hint about quitting is not sufficient. Solution: Put <Enter> separately. Also use ":qa!" to get out even when there are changes.
* patch 8.0.0602: when gF fails to edit the file the cursor still movesv8.0.0602Bram Moolenaar2017-05-241-3/+3
| | | | | | Problem: When gF fails to edit the file the cursor still moves to the found line number. Solution: Check the return value of do_ecmd(). (Michael Hwang)
* patch 8.0.0568: 1gd may hangv8.0.0568Bram Moolenaar2017-04-201-0/+6
| | | | | Problem: "1gd" may hang. Solution: Don't get stuck in one position. (Christian Brabandt, closes #1643)
* patch 8.0.0466: still macros that should be all-capsv8.0.0466Bram Moolenaar2017-03-161-1/+1
| | | | | Problem: There are still a few macros that should be all-caps. Solution: Make a few more macros all-caps.
* patch 8.0.0452: some macros are in lower casev8.0.0452Bram Moolenaar2017-03-121-7/+7
| | | | | Problem: Some macros are in lower case. Solution: Make a few more macros upper case.
* patch 8.0.0448: some macros are in lower casev8.0.0448Bram Moolenaar2017-03-121-37/+34
| | | | | Problem: Some macros are in lower case, which can be confusing. Solution: Make a few lower case macros upper case.
* patch 8.0.0379: CTRL-Z and mouse click use CTRL-O unnecessaryv8.0.0379Bram Moolenaar2017-02-261-2/+2
| | | | | Problem: CTRL-Z and mouse click use CTRL-O unnecessary. Solution: Remove stuffing CTRL-O. (James McCoy, closes #1453)
* patch 8.0.0303: bracketed paste does not work in Visual modev8.0.0303Bram Moolenaar2017-02-041-2/+31
| | | | | Problem: Bracketed paste does not work in Visual mode. Solution: Delete the text before pasting
* patch 8.0.0296: bracketed paste can only append, not insertv8.0.0296Bram Moolenaar2017-02-021-1/+6
| | | | | Problem: Bracketed paste can only append, not insert. Solution: When the cursor is in the first column insert the text.
* patch 8.0.0282: need to use CTRL-O twice when in Visual-Insert modev8.0.0282Bram Moolenaar2017-02-011-0/+2
| | | | | | | Problem: When doing a Visual selection and using "I" to go to insert mode, CTRL-O needs to be used twice to go to Normal mode. (Coacher) Solution: Check for the return value of edit(). (Christian Brabandt, closes #1290)
* patch 8.0.0210: no support for bracketed pastev8.0.0210Bram Moolenaar2017-01-211-1/+10
| | | | | | Problem: Vim does not support bracketed paste, as implemented by xterm and other terminals. Solution: Add t_BE, t_BD, t_PS and t_PE.
* patch 8.0.0208: internally used commands end up in historyv8.0.0208Bram Moolenaar2017-01-201-2/+2
| | | | | | | Problem: Internally used commands for CTRL-Z and mouse click end up in history. (Matthew Malcomson) Solution: Use do_cmdline_cmd() instead of stuffing them in the readahead buffer. (James McCoy, closes #1395)
* patch 8.0.0179: cannot have a local value for 'formatprg'v8.0.0179Bram Moolenaar2017-01-141-4/+6
| | | | | | Problem: 'formatprg' is a global option but the value may depend on the type of buffer. (Sung Pae) Solution: Make 'formatprg' global-local. (closes #1380)
* patch 8.0.0066v8.0.0066Bram Moolenaar2016-11-051-0/+5
| | | | | | | Problem: when calling an operator function when 'linebreak' is set, it is internally reset before calling the operator function. Solution: Restore 'linebreak' before calling op_function(). (Christian Brabandt)
* patch 8.0.0060v8.0.0060Bram Moolenaar2016-11-041-2/+6
| | | | | | Problem: When using an Ex command for 'keywordprg' it is escaped as with a shell command. (Romain Lafourcade) Solution: Escape for an Ex command. (closes #1175)
* patch 8.0.0023v8.0.0023Bram Moolenaar2016-10-081-7/+75
| | | | | Problem: "gd" and "gD" may find a match in a comment or string. Solution: Ignore matches in comments and strings. (Anton Lindqvist)
* patch 7.4.2365v7.4.2365Bram Moolenaar2016-09-121-2/+1
| | | | | Problem: Needless line break. Confusing directory name. Solution: Remove line break. Prepend "../" to "tools".
* patch 7.4.2347v7.4.2347Bram Moolenaar2016-09-081-3/+2
| | | | | | | Problem: Crash when closing a buffer while Visual mode is active. (Dominique Pelle) Solution: Adjust the position before computing the number of lines. When closing the current buffer stop Visual mode.
* patch 7.4.2326v7.4.2326Bram Moolenaar2016-09-041-0/+3
| | | | | | Problem: Illegal memory access when Visual selection starts in invalid position. (Dominique Pelle) Solution: Correct position when needed.
* patch 7.4.2320v7.4.2320Bram Moolenaar2016-09-031-1/+5
| | | | | | | Problem: Redraw problem when using 'incsearch'. Solution: Save the current view when deleting characters. (Christian Brabandt) Fix that the '" mark is set in the wrong position. Don't change the search start when using BS.
* patch 7.4.2293v7.4.2293Bram Moolenaar2016-08-291-1/+1
| | | | | Problem: Modelines in source code are inconsistant. Solution: Use the same line in most files. Add 'noet'. (Naruhiko Nishino)
* patch 7.4.2101v7.4.2101Bram Moolenaar2016-07-241-1/+1
| | | | | Problem: Looping over windows, buffers and tab pages is inconsistant. Solution: Use FOR_ALL_ macros everywhere. (Yegappan Lakshmanan)
* patch 7.4.1981v7.4.1981Bram Moolenaar2016-07-021-2/+2
| | | | | Problem: No testing for Farsi code. Solution: Add a minimal test. Clean up Farsi code.
* patch 7.4.1940v7.4.1940Bram Moolenaar2016-06-151-2/+5
| | | | | Problem: "gd" hangs in some situations. (Eric Biggers) Solution: Remove the SEARCH_START flag when looping. Add a test.
* patch 7.4.1833v7.4.1833Bram Moolenaar2016-05-241-2/+15
| | | | | Problem: Cannot use an Ex command for 'keywordprg'. Solution: Accept an Ex command. (Nelo-Thara Wallus)
* patch 7.4.1748v7.4.1748Bram Moolenaar2016-04-161-1/+2
| | | | | | Problem: "gD" does not find match in first column of first line. (Gary Johnson) Solution: Accept match at the cursor.