Commit Graph

2067 Commits

Author SHA1 Message Date
Justin M. Keyes
6bc8c7be3a Merge pull request #1867 from elmart/nonnull-deadcode
Remove deadcode due to nonnullret funcs.
2015-01-26 21:08:52 -05:00
Michael Reed
75a1006a20 api/*.c: Comment cleanup
- @justinmk: Clarify comments
- Match verbiage used in other api/*.c files
- Fix a few typos/missing words
2015-01-26 20:02:53 -05:00
Eliseo Martínez
5deb06597c Remove nonnullret deadcode: xmalloc & xrealloc. 2015-01-27 01:33:34 +01:00
Eliseo Martínez
00f18e2e09 Remove nonnullret deadcode: xmalloc. 2015-01-27 01:33:34 +01:00
Eliseo Martínez
883e3a7a73 Remove nonnullret deadcode: xcalloc. 2015-01-27 01:33:33 +01:00
Eliseo Martínez
73c6bd8a42 Remove nonnullret deadcode: viminfo_readstring. 2015-01-27 01:33:33 +01:00
Eliseo Martínez
d228b8a93e Remove nonnullret deadcode: vim_strsave. 2015-01-27 01:33:33 +01:00
Eliseo Martínez
ce5b476dd9 Remove nonnullret deadcode: transstr. 2015-01-27 01:33:32 +01:00
Eliseo Martínez
46065f6978 Remove nonnullret deadcode: str_foldcase & vim_strnsave. 2015-01-27 01:33:32 +01:00
Eliseo Martínez
8d6778a4d1 Remove nonnullret deadcode: home_replace_save. 2015-01-27 01:33:31 +01:00
Eliseo Martínez
d4d569d561 Remove nonnullret deadcode: getroom. 2015-01-27 01:33:31 +01:00
Eliseo Martínez
bd7e007c6d Remove nonnullret deadcode: enc_canonize. 2015-01-27 01:33:31 +01:00
Eliseo Martínez
c94863dec4 Remove nonnullret deadcode: addstar. 2015-01-27 01:33:31 +01:00
Eliseo Martínez
2ad0ca9c76 Remove nonnullret deadcode: Mark new nonnullret functions. 2015-01-27 01:33:31 +01:00
Felipe Morales
6425627c3f tools: add .clang-format
Configuration for clang-format and related utilities.

Examples:

    clang-format -style=file <file>
    git clang-format -style=file <commit>
    git diff -U0 HEAD^ | clang-format-diff.py -i -p1 -style=file
2015-01-26 21:10:14 -03:00
Florian Walch
b994c5c515 vim-patch: Mark 7.4.522, 7.4.591 as NA. 2015-01-26 02:19:15 -05:00
Florian Walch
4ef289e761 vim-patch:7.4.517
Problem:    With a wrapping line the cursor may not end up in the right place.
            (Nazri Ramliy)
Solution:   Adjust n_extra for a Tab that wraps. (Christian Brabandt)

https://code.google.com/p/vim/source/detail?r=v7-4-517
2015-01-26 02:19:14 -05:00
Florian Walch
51aacc2dea vim-patch:7.4.514
Problem:    Memory access error. (Dominique Pelle)
Solution:   Update tpos. (Christian Brabandt)

https://code.google.com/p/vim/source/detail?r=v7-4-514
2015-01-26 02:19:14 -05:00
Florian Walch
0f2d02569c vim-patch:31f7581
Update runtime files and translations.

https://code.google.com/p/vim/source/detail?r=31f7581068a9c3119e3bd2cd74160eb8282c3c6e
2015-01-26 02:17:13 -05:00
glebtv
c88ad49cf1 fix #1839: decrement mouse row and col
- regression by 04c0658024
2015-01-26 01:48:52 -05:00
Michael Reed
5b8d84d2c2 Remove '+float' references
The corresponding code was already removed in
b4ca3abc9f
2015-01-24 16:50:42 -05:00
Michael Reed
f4ad8e875c hardcopy.c: Factor out float usage 2015-01-24 16:50:42 -05:00
Michael Reed
9381004066 main.c: Misc. improvements
- Constify parameters and reduce char_u usage
- Modernize function signatures
- Modernize function comment blocks, rewriting if needed
- Factor out mainerr_arg_missing(); all the other ME_* macros lack
  such a wrapper function.

main_errors[]
  - Remove unneeded parentheses
  - Remove an unused error string and its respective macro

mainerr()
  - Don't print version when called. mainerr() only handles errors
    related to command line arguments, so the version isn't much help at
    all.
  - Changed 'vim' instance to 'nvim'

Misc.
  - Remove duplicate include
  - Replace unneeded 'inttypes.h' include with 'stdint.h'
  - Remove stray comments
  - Remove excessive newlines
2015-01-23 19:59:57 -05:00
Michael Reed
1a40013bec main.c: Enable -Wconversion 2015-01-23 19:42:21 -05:00
Thiago de Arruda
8a363360dc test: Migrate legacy test 107
This test depends on terminal size to work correctly. After migration this
requirement is removed.
2015-01-23 20:46:27 -03:00
Justin M. Keyes
0f39097e53 Merge pull request #1850 from JackDanger/halfway-a-line
doc: "halfway a line" is a very confusing phrase
2015-01-22 22:20:29 -08:00
Jack Danger Canty
19c22cdb80 "halfway a line" is a very confusing phrase
If you Google for this phrase found in the Vim documentation you'll find
almost exclusively hits from the Vim documentation. I think changing
"halfway a line" to "halfway through a line" makes more sense.

There seems to be an pervasive odd use of the word 'halfway' in the
original docs which I'm updating everywhere.
2015-01-22 21:57:03 -08:00
Justin M. Keyes
918b5d021d Merge pull request #1864 from Hinidu/vim-7.4.500
vim-patch:7.4.500 and fix in vim-patch:7.4.406
2015-01-22 17:28:02 -08:00
Justin M. Keyes
20fef8a7eb Merge pull request #1847 from JackDanger/safely-freeing-channels
Fix CID #102150
2015-01-22 16:55:10 -08:00
Jack Danger Canty
1a090983f5 Fix CID #102150
Don't attempt to write an error message to a channel that may have been
closed and freed.

[CID #102150](https://scan8.coverity.com/reports.htm#v22612/p10672/fileInstanceId=3625286&defectInstanceId=1525721&mergedDefectId=102150)
2015-01-22 00:17:42 -08:00
Pavel Platto
02113c328e Replace erroneous ft=unix by ff=unix from 7.4.406 2015-01-21 23:57:14 +02:00
Pavel Platto
83d8e87a92 vim-patch:7.4.500
Problem:    Test 72 still fails once in a while.
Solution:   Don't set 'fileformat' to unix, reset it. (Ken Takata)

https://code.google.com/p/vim/source/detail?r=v7-4-500
2015-01-21 23:54:51 +02:00
Florian Walch
39516a0d15 vim-patch: Mark patches as NA. 2015-01-21 20:21:46 +01:00
Justin M. Keyes
c3028e4353 Merge pull request #1656 from fmoralesc/remove-easy-mode
Remove "easy" mode.
2015-01-21 00:17:17 -05:00
Justin M. Keyes
57207ea60e Merge pull request #1856 from Hinidu/vim-7.4.462
vim-patch:7.4.462
2015-01-20 17:48:34 -05:00
Pavel Platto
2275b9753e vim-patch:7.4.462
Problem:    Setting the local value of 'backupcopy' empty gives an error.
	    (Peter Mattern)
Solution:   When using an empty value set the flags to zero. (Hirohito
	    Higashi)

https://code.google.com/p/vim/source/detail?r=v7-4-462
2015-01-20 21:57:57 +02:00
Pavel Platto
85f342a110 vim-patch:7.4.446
Problem:    In some situations, when setting up an environment to trigger an
	    autocommand, the environment is not properly restored.
Solution:   Check the return value of switch_win() and call restore_win()
	    always.  (Daniel Hahler)

https://code.google.com/p/vim/source/detail?r=v7-4-446
2015-01-20 21:09:45 +02:00
Justin M. Keyes
487d2ce74a Merge pull request #1843 from JackDanger/initialize-our_paren_pos-CID-102151
coverity/102151: initialize `our_paren_pos`
2015-01-19 17:56:21 -05:00
Pavel Platto
1d5222985c vim-patch:7.4.492
Problem:    In Insert mode, after inserting a newline that inserts a comment
	    leader, CTRL-O moves to the right. (ZyX) Issue 57.
Solution:   Correct the condition for moving the cursor back to the NUL.
	    (Christian Brabandt)

  https://code.google.com/p/vim/source/detail?r=v7-4-492
2015-01-19 23:39:01 +02:00
Eliseo Martínez
dad1e39edf Remove long_u: Remove type. 2015-01-19 19:47:29 +01:00
Eliseo Martínez
2ceb1c74d5 Remove long_u: regexp: Refactor long_u. 2015-01-19 19:47:28 +01:00
Eliseo Martínez
79b5a629eb Remove long_u: ops.c: Refactor long_u. 2015-01-19 19:47:28 +01:00
Eliseo Martínez
b716b047e0 Remove long_u: ex_docmd.c: Refactor long_u. 2015-01-19 19:47:27 +01:00
Eliseo Martínez
c03913c991 Remove long_u: buffer_defs.h: Refactor long_u. 2015-01-19 19:47:27 +01:00
Eliseo Martínez
e1f7821874 Remove long_u: option.c: Refactor long_u. 2015-01-19 19:47:27 +01:00
Eliseo Martínez
426544ca88 Remove long_u: option.c: Enable -Wconversion. 2015-01-19 19:47:26 +01:00
Eliseo Martínez
31dacda874 Remove long_u: (various): Refactor long_u. 2015-01-19 19:41:27 +01:00
Eliseo Martínez
6762f172d7 Remove long_u: ex_cmds_defs.h: Refactor long_u.
CommandDefinition.cmd_argt: long_u --> uint32_t.
2015-01-19 19:41:27 +01:00
Justin M. Keyes
d0debe2432 Merge pull request #1729 from fwalch/vim-7.4.490
vim-patch:7.4.490
2015-01-19 08:52:29 -05:00
Jack Danger Canty
f44a1e1632 coverity/102151: initialize our_paren_pos
This hoists the initialization of `our_paren_pos` outside a conditional
so it can be safely referenced further down in this function.

Originally broken in:
https://code.google.com/p/vim/source/diff?spec=svndc8197342755fda6ca4d6619dac228406867a7ce&old=01583c79d5f4d3f29d4c33dd10dd29efd349cad0&r=dc8197342755fda6ca4d6619dac228406867a7ce&format=unidiff&path=%2Fsrc%2Fmisc1.c

This fixes CID #102151
https://scan8.coverity.com/reports.htm#v22612/p10672/fileInstanceId=3625174&defectInstanceId=1525719&mergedDefectId=102151
2015-01-18 19:31:22 -08:00