Mercurial > vim
comparison src/gui_haiku.cc @ 26865:bce848ec8b1b v8.2.3961
patch 8.2.3961: error messages are spread out
Commit: https://github.com/vim/vim/commit/436b5adc9770a2568209dd5ab1f98bd1afc91898
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 31 22:49:24 2021 +0000
patch 8.2.3961: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 Jan 2022 00:00:04 +0100 |
parents | 92c424550367 |
children | 89e1d67814a9 |
comparison
equal
deleted
inserted
replaced
26864:eb95ad159bce | 26865:bce848ec8b1b |
---|---|
3845 font_style style = {0}; | 3845 font_style style = {0}; |
3846 float size = 0.f; | 3846 float size = 0.f; |
3847 | 3847 |
3848 if (name == 0 && be_fixed_font == 0) { | 3848 if (name == 0 && be_fixed_font == 0) { |
3849 if (giveErrorIfMissing) | 3849 if (giveErrorIfMissing) |
3850 semsg(_(e_font), name); | 3850 semsg(_(e_unknown_font_str), name); |
3851 return NOFONT; | 3851 return NOFONT; |
3852 } | 3852 } |
3853 | 3853 |
3854 bool useSelectGUI = false; | 3854 bool useSelectGUI = false; |
3855 if (name != NULL) | 3855 if (name != NULL) |
3912 VimFont *font = new VimFont(); | 3912 VimFont *font = new VimFont(); |
3913 font->name = vim_strsave((char_u*)font_name); | 3913 font->name = vim_strsave((char_u*)font_name); |
3914 | 3914 |
3915 if (count_font_styles(family) <= 0) { | 3915 if (count_font_styles(family) <= 0) { |
3916 if (giveErrorIfMissing) | 3916 if (giveErrorIfMissing) |
3917 semsg(_(e_font), font->name); | 3917 semsg(_(e_unknown_font_str), font->name); |
3918 delete font; | 3918 delete font; |
3919 return NOFONT; | 3919 return NOFONT; |
3920 } | 3920 } |
3921 | 3921 |
3922 // Remember font in the static list for later use | 3922 // Remember font in the static list for later use |