1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 05:46:38 +02:00

core: fix typos in many comments and some strings

This commit is contained in:
Sebastien Helleu
2013-03-17 12:55:20 +01:00
parent 46677c79fc
commit 149c77decd
70 changed files with 228 additions and 217 deletions
+2 -2
View File
@@ -464,7 +464,7 @@ gui_chat_display_word (struct t_gui_window *window,
length_align = gui_line_get_align (window->buffer, line, 0, 0);
if ((window->win_chat_cursor_x == 0)
&& (*lines_displayed > 0)
/* FIXME: modify arbitraty value for non aligning messages on time/nick? */
/* FIXME: modify arbitrary value for non aligning messages on time/nick? */
&& (length_align < (window->win_chat_width - 5)))
{
if (!simulate)
@@ -1108,7 +1108,7 @@ gui_chat_display_line (struct t_gui_window *window, struct t_gui_line *line,
if ((window->win_chat_cursor_x + word_length_with_spaces > gui_chat_get_real_width (window))
&& (word_length <= gui_chat_get_real_width (window) - line_align))
{
/* spaces + word too long for current line but ok for next line */
/* spaces + word too long for current line but OK for next line */
gui_chat_display_new_line (window, num_lines, count,
&lines_displayed, simulate);
/* apply styles before jumping to start of word */
+1 -1
View File
@@ -551,7 +551,7 @@ gui_key_read_cb (void *data, int fd)
{
if (accept_paste)
{
/* user is ok for pasting text, let's paste! */
/* user is OK for pasting text, let's paste! */
gui_key_paste_accept ();
}
else if (cancel_paste)
+1 -1
View File
@@ -346,7 +346,7 @@ gui_main_loop ()
while (!weechat_quit)
{
/* reload config, if SIGHUP reveived */
/* reload config, if SIGHUP received */
if (gui_reload_config)
{
gui_reload_config = 0;
+2 -2
View File
@@ -2245,7 +2245,7 @@ gui_window_set_title (const char *title)
{
printf ("\033&f0k%dD%s", (int)(strlen(title) + 1), title);
}
/* the following term supports the xterm excapes */
/* the following terminals support the xterm escape codes */
else if ((strncmp (envterm, "xterm", 5) == 0)
|| (strncmp (envterm, "rxvt", 4) == 0)
|| (strcmp (envterm, "Eterm") == 0)
@@ -2272,7 +2272,7 @@ gui_window_set_title (const char *title)
{
printf ("\033&f0k%dD%s", (int)strlen("Terminal"), "Terminal");
}
/* the following term supports the xterm excapes */
/* the following terminals support the xterm escape codes */
else if ((strncmp (envterm, "xterm", 5) == 0)
|| (strncmp (envterm, "rxvt", 4) == 0)
|| (strcmp (envterm, "Eterm") == 0)
+2 -2
View File
@@ -245,7 +245,7 @@ gui_bar_get_min_height (struct t_gui_bar *bar)
}
/*
* Checks if "add_size" is ok for bar.
* Checks if "add_size" is OK for bar.
*
* Returns:
* 1: new size is OK
@@ -287,7 +287,7 @@ gui_bar_check_size_add (struct t_gui_bar *bar, int add_size)
}
}
/* new size ok */
/* new size OK */
return 1;
}
+2 -2
View File
@@ -1871,7 +1871,7 @@ gui_buffer_search_by_partial_name (const char *plugin, const char *name)
if (!name || !name[0])
return gui_current_window->buffer;
/* 0: mathces beginning of buffer name, 1: in the middle, 2: the end */
/* 0: matches beginning of buffer name, 1: in the middle, 2: the end */
buffer_partial_match[0] = NULL;
buffer_partial_match[1] = NULL;
buffer_partial_match[2] = NULL;
@@ -2416,7 +2416,7 @@ gui_buffer_move_to_number (struct t_gui_buffer *buffer, int number)
if (number < 1)
number = 1;
/* buffer number is already ok ? */
/* buffer number is already OK ? */
if (number == buffer->number)
return;
+2 -2
View File
@@ -494,7 +494,7 @@ gui_completion_get_matching_template (struct t_gui_completion *completion,
* template, for example with these templates (command /set):
* %(config_options) %(config_option_values)
* diff %(config_options)|%*
* if first argument is "diff", the match is ok (second template)
* if first argument is "diff", the match is OK (second template)
* if first argument is not "diff", we will fallback on the first
* template containing "%" (here first template)
*/
@@ -1068,7 +1068,7 @@ gui_completion_complete (struct t_gui_completion *completion)
}
/*
* if we was on last completion in list, then recomplete, starting from
* if we was on last completion in list, then complete again, starting from
* first matching item
*/
if (completion->word_found && (completion->position >= 0))
+1 -1
View File
@@ -41,7 +41,7 @@ struct t_gui_completion
char *base_command; /* cmd with arg to complete (can be NULL) */
int base_command_arg_index; /* # arg to complete (if context=cmd arg) */
char *base_word; /* word to complete (when Tab was pressed) */
int base_word_pos; /* beggining of base word */
int base_word_pos; /* beginning of base word */
int position; /* position where Tab was pressed */
char *args; /* command line args (including base word) */
int direction; /* +1=search next word, -1=previous word */
+1 -1
View File
@@ -30,7 +30,7 @@ struct t_gui_focus_info
struct t_gui_line *chat_line; /* line in chat area */
int chat_line_x; /* x in line */
char *chat_word; /* word at (x,y) */
char *chat_bol; /* beginnong of line until (x,y) */
char *chat_bol; /* beginning of line until (x,y) */
char *chat_eol; /* (x,y) until end of line */
struct t_gui_bar_window *bar_window; /* bar window found */
char *bar_item; /* bar item found */
+2 -2
View File
@@ -46,7 +46,7 @@ struct t_gui_hotlist *gui_hotlist = NULL;
struct t_gui_hotlist *last_gui_hotlist = NULL;
struct t_gui_buffer *gui_hotlist_initial_buffer = NULL;
int gui_add_hotlist = 1; /* 0 is for temporarly disable */
int gui_add_hotlist = 1; /* 0 is for temporarily disable */
/* hotlist add for all buffers */
@@ -308,7 +308,7 @@ gui_hotlist_add (struct t_gui_buffer *buffer,
if (priority > GUI_HOTLIST_MAX)
priority = GUI_HOTLIST_MAX;
/* check if priority is ok according to buffer notify level value */
/* check if priority is OK according to buffer notify level value */
if (!gui_hotlist_check_buffer_notify (buffer, priority))
return NULL;
+1 -1
View File
@@ -1124,7 +1124,7 @@ gui_line_add (struct t_gui_buffer *buffer, time_t date,
WEECHAT_HOOK_SIGNAL_POINTER, buffer);
}
/* add mixed line, if buffer is attched to at least one other buffer */
/* add mixed line, if buffer is attached to at least one other buffer */
if (buffer->mixed_lines)
{
gui_line_mixed_add (buffer->mixed_lines, new_line->data);