aboutsummaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
Commit message (Collapse)AuthorAge
* Introduce nvim namespace: Move files.Eliseo Martínez2014-05-15
| | | | | | Move files from src/ to src/nvim/. - src/nvim/ becomes the new root dir for nvim executable sources. - src/libnvim/ is planned to become root dir of the neovim library.
* replaced `vim_free()` calls with `free()` callsMatthias Beyer2014-05-05
|
* Remove unused function handle_drop.Thomas Wienecke2014-05-03
|
* Remove two-iteration loop from expand_filenamePavel Platto2014-05-02
|
* Replace 'alloc' with 'xmalloc' in some files.Chris Watkins2014-05-01
| | | | | | | | Files changed: charset.c, buffer.c, diff.c, edit.c, ex_cmds.c, ex_cmds2.c and ex_docmd.c. The remaining alloc's in these files require more careful attention to remove.
* revert #652Justin M. Keyes2014-05-01
| | | | | | | reverting broad cosmetic/style change because: - increases merge-conflicts - increases overhead of merging upstream Vim patches - reasons for change are ambiguous, so default to no change
* Remove NUL macroMarco Hinz2014-04-29
|
* Test and refactor `shorten_fname` and `shorten_fname1`John2014-04-29
| | | | | Rename `shorten_fname` -> `path_shorten_fname` Rename `shorten_fname1` -> `path_shorten_fname_if_possible`
* Use portable format specifiers: Clarify some casted expressions.Eliseo Martínez2014-04-28
| | | | | | | | | Though correct (to my understanding), some of the casts introduced in previous commits could lead to confusion, by casting only the first expression component instead of the whole expression. This fixes that, parenthesizing casted expressions, except where operator precedence rules make it unneccesary.
* Remove code and checks for unsupported systems.Chris Watkins2014-04-28
| | | | | Remove remnants of support for systems including __EMX__, MSDOS, OS2, AMIGA and MORPHOS.
* Remove mch_screenmode, inline EMSG into ex_mode()Stefan Hoffmann2014-04-24
|
* Use portable format specifiers: Case %ld - localized - EMSGN.Eliseo Martínez2014-04-23
| | | | | | Fix uses of localized "%ld" within EMSGN(): - Replace "%ld" with "%" PRId64. - No argument cast needed. EMSGN() will take care of that.
* Use portable format specifiers: Case %ld - localized - smsg.Eliseo Martínez2014-04-23
| | | | | | Fix uses of localized "%ld" within smsg(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Use portable format specifiers: Case %ld - plain - smsg.Eliseo Martínez2014-04-23
| | | | | | Fix uses of plain "%ld" within smsg(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Use portable format specifiers: Case %ld - plain - fprintf.Eliseo Martínez2014-04-23
| | | | | | Fix uses of plain "%ld" within fprintf(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Use portable format specifiers: Case %ld - plain - sprintf.Eliseo Martínez2014-04-23
| | | | | | Fix uses of plain "%ld" within sprintf(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
* Remove modelinesMarco Hinz2014-04-16
| | | | | Removed modelines are better than modelines that differ from file to file.
* vim-patch:7.4.239Marco Hinz2014-04-16
| | | | | | | | Problem: ":e +" does not position cursor at end of the file. Solution: Check for "+" being the last character (ZyX) https://code.google.com/p/vim/source/detail?r=98bfec9ea7608f312129475d4ca0ae6d1c6c232e
* vim-patch:7.4.233Marco Hinz2014-04-16
| | | | | | | | | Problem: Escaping special characters for using "%" with a shell command is inconsistant: parentheses are escaped but spaces are not. Solution: Only escape "!". (Gary Johnson) https://code.google.com/p/vim/source/detail?r=22a1d5762ba3a75984e89dcc47a65498f63a6c2c
* vim-patch:7.4.232Marco Hinz2014-04-16
| | | | | | | Problem: ":%s/\n//" uses a lot of memory. (Aidan Marlin) Solution: Turn this into a join command. (Christian Brabandt) https://code.google.com/p/vim/source/detail?r=845608965bd9d0b2755997a7be812746885ff105
* vim-patch:7.4.215Marco Hinz2014-04-16
| | | | | | | | | Problem: Inconsistency: ":sp foo" does not reload "foo", unless "foo" is the current buffer. (Liang Li) Solution: Do not reload the current buffer on a split command. https://code.google.com/p/vim/source/detail?r=f069a3a0f84451aa498c6c22d8f922d1e695e96d
* vim-patch:7.4.213oni-link2014-04-14
| | | | | | | | Problem: It's not possible to open a new buffer without creating a swap file. Solution: Add the ":noswapfile" modifier. (Christian Brabandt) https://code.google.com/p/vim/source/detail?r=e25a04c1c515e6eb32197291472f89bcadfabf89
* vim-patch:7.4.205oni-link2014-04-14
| | | | | | | | | Problem: ":mksession" writes command to move to second argument while it does not exist. When it does exist the order might be wrong. Solution: Use ":argadd" for each argument instead of using ":args" with a list of names. (Nobuhiro Takasaki) https://code.google.com/p/vim/source/detail?r=0ace3a24c2a0153f0aaf9b619d3958e7f486705f
* removed vim_mkdir macroStefan Hoffmann2014-04-11
|
* No error condition in store_loop_line()Felipe Oliveira Carvalho2014-04-11
|
* Remove OOM error handling code after ga_grow() callsFelipe Oliveira Carvalho2014-04-11
|
* Remove mblen() checkJohn Schmidt2014-04-05
|
* Remove tclJohn Schmidt2014-04-05
|
* Remove mzschemeJohn Schmidt2014-04-05
|
* Remove python, perl, lua, rubyJohn Schmidt2014-04-05
|
* Remove SniFFJohn Schmidt2014-04-05
|
* Remove Amiga stuffJohn Schmidt2014-04-05
|
* Extract memory.c from misc2.cJohn Schmidt2014-04-04
|
* vim-patch:7.4.169Keerthan Jaic2014-04-04
| | | | | | | Problem: ":sleep" puts cursor in the wrong column. (Liang Li) Solution: Add the window offset. (Christian Brabandt) https://code.google.com/p/vim/source/detail?r=4e3a9dd25d428e7c08ed401afc244972e27e08e6
* Remove `:shell` and `suspend_shell`Thiago de Arruda2014-04-03
| | | | Issue #450 contains more details
* Test and refactor gettail -> path_tail.Thomas Wienecke2014-04-03
|
* Rename ga_init2() to ga_init()John Schmidt2014-03-31
|
* Re-integrate FEAT_SIGNS code, close #383Justin M. Keyes2014-03-29
| | | | | - omit FEAT_NETBEANS_INTG and FEAT_SIGN_ICONS - omit FEAT_GUI blocks
* Extract path.c from misc1.cJohn Schmidt2014-03-29
|
* Rename mch_* functions to os_* in os module.Thomas Wienecke2014-03-27
|
* Use memmove instead of mch_memmoveFelipe Oliveira Carvalho2014-03-26
|
* Use memset instead of vim_memsetFelipe Oliveira Carvalho2014-03-25
| | | | | | | | | Ran some commands on terminal, reviewed changes, and made some manual changes too. find src | xargs perl -i -p -e "s/vim_memset/memset/g" git grep -l memset | egrep "\.c$" | xargs perl -i -p -e \ 's/(#include "vim\.h")/#include <string.h>\n\n\1/g'
* adapt to the style guildelinesPetter Wahlman2014-03-19
| | | | | semi-automated harvest of low hanging fruit: change the unorthodox use of whitespace.
* Revive vim_fname (-> os_file_exists); fix misuse of mch_getperm.Thomas Wienecke2014-03-15
| | | | | | * Move vim_fname from misc1 to os/fs:os_file_exists. * Add unit tests for os_file_exists. * Replace misuse of mch_getperm with os_file_exists.
* Extract keymap.c from misc2.cFelipe Oliveira Carvalho2014-03-06
|
* Extract crypt.c from misc2.cFelipe Oliveira Carvalho2014-03-06
|
* Remove __ARGS macro. Close #205Nicolas Pierron2014-03-02
| | | | | | | | | This is a squash of all commits sent to #81. - Remove unused undef of __ARGS. - Fix mch_rename declaration. - Follow changes related to moved & extracted files. - Properly indent function declarations of getchar.h and quickfix.c.
* Extract file_search.c from misc2.cFelipe Oliveira Carvalho2014-02-28
| | | | | | | | Continue to split misc2.c in many other files (see #209). The only changed I made to the moved code was adding `vim_free(ff_expand_buffer)` to `free_finfile()`. This is was needed because `ff_expand_buffer` was moved from `misc2.c` to `file_search.c`.
* Extract garray.c from misc2.cFelipe Oliveira Carvalho2014-02-28
| | | | Start to split misc2.c in many other files (see #209).
* Removes 'proto' dirscott-linder2014-02-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See #137 for the issue. Every header in the proto directory was: * Given include guards in the form #ifndef NEOVIM_FILENAME_H #define NEOVIM_FILENAME_H ... #endif /* NEOVIM_FILENAM_H */ * Renamed from *.pro -> *.h * Moved from src/proto/ to src/ This would have caused conficts with some existing headers in src/; rather than merge these conflicts now (which is a whole other can of worms involving multiple and conditional inclusion), any header in src/ with a conflicting name was renamed from *.h -> *_defs.h (which may or may not actually describe its purpose, the change is purely a namespacing issue). Once all of these changes were made a script was developed to determine what #includes needed to be added to each source file to describe its dependencies and allow it to compile; because the script is so short and I'll just list it here: #! /bin/bash cd $(dirname $0) # Scrapes `make` output for provided error messages and outputs #includes # needed to resolve them. # $1 : part of the clang error message between filename and identifier list_missing_includes() { for file_missing_pair in $(CC=clang make 2>&1 >/dev/null | sed -n "s/\/\(.*\.[hc]\).*$1.*'\(.*\)'.*/\1:\2/p"); do fields=(${file_missing_pair//:/ }) source_file=${fields[0]} missing_func=${fields[1]} # Try to find the declaration of the missing function. echo $(basename $source_file) \ \#include \"$(grep -r "\b$missing_func __ARGS" | sed -n "s/.*\/\(.*\)\:.*/\1/p")\" # Remove duplicates done | sort | uniq } echo "Finding missing function prototypes..." list_missing_includes "implicit declaration of function" echo "Finding missing identifier declarations..." list_missing_includes "use of undeclared identifier" Each list of required headers was added by hand in the following format: #include "vim.h" #include "*_defs.h" #include "filename.h" /* All other includes in same module here, in alphabetical order. */ /* All includes from other modules (e.g. "os/*.h") here in alphabetical * order. */