Mercurial > vim
comparison src/ui.c @ 15967:ddd82b1c9e9d v8.1.0989
patch 8.1.0989: various small code ugliness
commit https://github.com/vim/vim/commit/bdace838c67c1bd94e55e34270a8325933891466
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 2 10:13:42 2019 +0100
patch 8.1.0989: various small code ugliness
Problem: Various small code ugliness.
Solution: Remove pointless NULL checks. Fix function calls. Fix typos.
(Dominique Pelle, closes #4060)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 02 Mar 2019 10:15:06 +0100 |
parents | 7fad90423bd2 |
children | c1698187c482 |
comparison
equal
deleted
inserted
replaced
15966:04e63da5e0b3 | 15967:ddd82b1c9e9d |
---|---|
1736 clip_gen_set_selection(VimClipboard *cbd) | 1736 clip_gen_set_selection(VimClipboard *cbd) |
1737 { | 1737 { |
1738 if (!clip_did_set_selection) | 1738 if (!clip_did_set_selection) |
1739 { | 1739 { |
1740 /* Updating postponed, so that accessing the system clipboard won't | 1740 /* Updating postponed, so that accessing the system clipboard won't |
1741 * hang Vim when accessing it many times (e.g. on a :g comand). */ | 1741 * hang Vim when accessing it many times (e.g. on a :g command). */ |
1742 if ((cbd == &clip_plus && (clip_unnamed_saved & CLIP_UNNAMED_PLUS)) | 1742 if ((cbd == &clip_plus && (clip_unnamed_saved & CLIP_UNNAMED_PLUS)) |
1743 || (cbd == &clip_star && (clip_unnamed_saved & CLIP_UNNAMED))) | 1743 || (cbd == &clip_star && (clip_unnamed_saved & CLIP_UNNAMED))) |
1744 { | 1744 { |
1745 clipboard_needs_update = TRUE; | 1745 clipboard_needs_update = TRUE; |
1746 return; | 1746 return; |