diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | doc/de/autogen/user/weechat_options.txt | 5 | ||||
-rw-r--r-- | doc/en/autogen/user/weechat_options.txt | 5 | ||||
-rw-r--r-- | doc/fr/autogen/user/weechat_options.txt | 5 | ||||
-rw-r--r-- | doc/it/autogen/user/weechat_options.txt | 5 | ||||
-rw-r--r-- | po/cs.po | 7 | ||||
-rw-r--r-- | po/de.po | 7 | ||||
-rw-r--r-- | po/es.po | 7 | ||||
-rw-r--r-- | po/fr.po | 11 | ||||
-rw-r--r-- | po/hu.po | 7 | ||||
-rw-r--r-- | po/it.po | 7 | ||||
-rw-r--r-- | po/pl.po | 7 | ||||
-rw-r--r-- | po/pt_BR.po | 7 | ||||
-rw-r--r-- | po/ru.po | 7 | ||||
-rw-r--r-- | po/weechat.pot | 7 | ||||
-rw-r--r-- | src/core/wee-config.c | 7 | ||||
-rw-r--r-- | src/core/wee-config.h | 1 | ||||
-rw-r--r-- | src/gui/curses/gui-curses-bar-window.c | 13 |
18 files changed, 99 insertions, 18 deletions
@@ -7,6 +7,8 @@ v0.3.5-dev, 2011-01-31 Version 0.3.5 (under dev!) -------------------------- +* core: add some chars after cursor when scrolling input line: new option + weechat.look.input_cursor_scroll (bug #21391) * core: dynamically allocate color pairs (extended colors can be used without being added with command "/color add") * core: allow background for nick colors (using "/") diff --git a/doc/de/autogen/user/weechat_options.txt b/doc/de/autogen/user/weechat_options.txt index 389d41dd4..c50314a8a 100644 --- a/doc/de/autogen/user/weechat_options.txt +++ b/doc/de/autogen/user/weechat_options.txt @@ -383,6 +383,11 @@ ** Typ: boolesch ** Werte: on, off (Standardwert: `on`) +* *weechat.look.input_cursor_scroll* +** Beschreibung: `number of chars displayed after end of input line when scrolling to display end of line` +** Typ: integer +** Werte: 0 .. 100 (Standardwert: `20`) + * *weechat.look.input_share* ** Beschreibung: `Mit dieser Option kann man den Inhalt der Eingabezeile in allen Buffern verwenden. Es können dabei nur Befehle (commands), nur Text (text), beides (all) berücksichtigt werden (Der Befehlsverlauf der einzelnen Buffer bleibt hierbei erhalten)` ** Typ: integer diff --git a/doc/en/autogen/user/weechat_options.txt b/doc/en/autogen/user/weechat_options.txt index b108d28e0..e6cf30f4e 100644 --- a/doc/en/autogen/user/weechat_options.txt +++ b/doc/en/autogen/user/weechat_options.txt @@ -383,6 +383,11 @@ ** type: boolean ** values: on, off (default value: `on`) +* *weechat.look.input_cursor_scroll* +** description: `number of chars displayed after end of input line when scrolling to display end of line` +** type: integer +** values: 0 .. 100 (default value: `20`) + * *weechat.look.input_share* ** description: `share commands, text, or both in input for all buffers (there is still local history for each buffer)` ** type: integer diff --git a/doc/fr/autogen/user/weechat_options.txt b/doc/fr/autogen/user/weechat_options.txt index 52ad0bf7f..9159a7a18 100644 --- a/doc/fr/autogen/user/weechat_options.txt +++ b/doc/fr/autogen/user/weechat_options.txt @@ -383,6 +383,11 @@ ** type: booléen ** valeurs: on, off (valeur par défaut: `on`) +* *weechat.look.input_cursor_scroll* +** description: `nombre de caractères affichés après la fin de la ligne de saisie lors d'un défilement pour afficher la fin de la ligne` +** type: entier +** valeurs: 0 .. 100 (valeur par défaut: `20`) + * *weechat.look.input_share* ** description: `partage les commandes, le texte, ou les deux dans la zone de saisie pour tous les tampons (il y a toujours un historique local sur chaque tampon)` ** type: entier diff --git a/doc/it/autogen/user/weechat_options.txt b/doc/it/autogen/user/weechat_options.txt index 88e6e51a5..9c7f27fa3 100644 --- a/doc/it/autogen/user/weechat_options.txt +++ b/doc/it/autogen/user/weechat_options.txt @@ -383,6 +383,11 @@ ** tipo: bool ** valori: on, off (valore predefinito: `on`) +* *weechat.look.input_cursor_scroll* +** descrizione: `number of chars displayed after end of input line when scrolling to display end of line` +** tipo: intero +** valori: 0 .. 100 (valore predefinito: `20`) + * *weechat.look.input_share* ** descrizione: `condivide comandi, testo o entrambi in input per tutti i buffer (resta tuttavia la cronologia locale per ogni buffer)` ** tipo: intero @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.5-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-01-31 18:41+0100\n" +"POT-Creation-Date: 2011-01-31 21:01+0100\n" "PO-Revision-Date: 2011-01-31 14:50+0100\n" "Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1950,6 +1950,11 @@ msgstr "" "bufferů)" msgid "" +"number of chars displayed after end of input line when scrolling to display " +"end of line" +msgstr "" + +msgid "" "share commands, text, or both in input for all buffers (there is still local " "history for each buffer)" msgstr "" @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.5-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-01-31 20:53+0100\n" +"POT-Creation-Date: 2011-01-31 21:01+0100\n" "PO-Revision-Date: 2011-01-31 20:13+0100\n" "Last-Translator: Nils G.\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -2047,6 +2047,11 @@ msgstr "" "(diese Option kommt nur zum Tragen sofern KEINE Buffernamen angezeigt werden)" msgid "" +"number of chars displayed after end of input line when scrolling to display " +"end of line" +msgstr "" + +msgid "" "share commands, text, or both in input for all buffers (there is still local " "history for each buffer)" msgstr "" @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.5-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-01-31 18:41+0100\n" +"POT-Creation-Date: 2011-01-31 21:01+0100\n" "PO-Revision-Date: 2011-01-31 18:57+0100\n" "Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -2000,6 +2000,11 @@ msgstr "" "número)" msgid "" +"number of chars displayed after end of input line when scrolling to display " +"end of line" +msgstr "" + +msgid "" "share commands, text, or both in input for all buffers (there is still local " "history for each buffer)" msgstr "" @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.5-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-01-31 18:41+0100\n" -"PO-Revision-Date: 2011-01-31 18:57+0100\n" +"POT-Creation-Date: 2011-01-31 21:01+0100\n" +"PO-Revision-Date: 2011-01-31 21:01+0100\n" "Last-Translator: Sebastien Helleu <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" "Language: French\n" @@ -2005,6 +2005,13 @@ msgstr "" "numéro)" msgid "" +"number of chars displayed after end of input line when scrolling to display " +"end of line" +msgstr "" +"nombre de caractères affichés après la fin de la ligne de saisie lors d'un " +"défilement pour afficher la fin de la ligne" + +msgid "" "share commands, text, or both in input for all buffers (there is still local " "history for each buffer)" msgstr "" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.5-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-01-31 18:41+0100\n" +"POT-Creation-Date: 2011-01-31 21:01+0100\n" "PO-Revision-Date: 2011-01-31 14:50+0100\n" "Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1745,6 +1745,11 @@ msgid "" msgstr "" msgid "" +"number of chars displayed after end of input line when scrolling to display " +"end of line" +msgstr "" + +msgid "" "share commands, text, or both in input for all buffers (there is still local " "history for each buffer)" msgstr "" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.5-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-01-31 18:41+0100\n" +"POT-Creation-Date: 2011-01-31 21:01+0100\n" "PO-Revision-Date: 2011-01-31 18:57+0100\n" "Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -2001,6 +2001,11 @@ msgstr "" "hotlist per cui il nome NON viene visualizzato dopo il numero)" msgid "" +"number of chars displayed after end of input line when scrolling to display " +"end of line" +msgstr "" + +msgid "" "share commands, text, or both in input for all buffers (there is still local " "history for each buffer)" msgstr "" @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.5-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-01-31 18:41+0100\n" +"POT-Creation-Date: 2011-01-31 21:01+0100\n" "PO-Revision-Date: 2011-01-31 18:57+0100\n" "Last-Translator: Krzysztof Koroscik <soltys@szluug.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -2007,6 +2007,11 @@ msgstr "" "hotlisty, w których nazwa NIE jest wyświetlana po numerze)" msgid "" +"number of chars displayed after end of input line when scrolling to display " +"end of line" +msgstr "" + +msgid "" "share commands, text, or both in input for all buffers (there is still local " "history for each buffer)" msgstr "" diff --git a/po/pt_BR.po b/po/pt_BR.po index 9bb739439..4cce090df 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.5-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-01-31 18:41+0100\n" +"POT-Creation-Date: 2011-01-31 21:01+0100\n" "PO-Revision-Date: 2011-01-31 14:51+0100\n" "Last-Translator: Ivan Sichmann Freitas <ivansichfreitas@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1998,6 +1998,11 @@ msgid "" msgstr "" msgid "" +"number of chars displayed after end of input line when scrolling to display " +"end of line" +msgstr "" + +msgid "" "share commands, text, or both in input for all buffers (there is still local " "history for each buffer)" msgstr "" @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat 0.3.5-dev\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-01-31 18:41+0100\n" +"POT-Creation-Date: 2011-01-31 21:01+0100\n" "PO-Revision-Date: 2011-01-31 14:51+0100\n" "Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -1763,6 +1763,11 @@ msgstr "" "номера буферов)" msgid "" +"number of chars displayed after end of input line when scrolling to display " +"end of line" +msgstr "" + +msgid "" "share commands, text, or both in input for all buffers (there is still local " "history for each buffer)" msgstr "" diff --git a/po/weechat.pot b/po/weechat.pot index 18952041f..9b4d2d2d2 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2011-01-31 18:41+0100\n" +"POT-Creation-Date: 2011-01-31 21:01+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -1504,6 +1504,11 @@ msgid "" msgstr "" msgid "" +"number of chars displayed after end of input line when scrolling to display " +"end of line" +msgstr "" + +msgid "" "share commands, text, or both in input for all buffers (there is still local " "history for each buffer)" msgstr "" diff --git a/src/core/wee-config.c b/src/core/wee-config.c index 1fcb7613e..8614adc02 100644 --- a/src/core/wee-config.c +++ b/src/core/wee-config.c @@ -93,6 +93,7 @@ struct t_config_option *config_look_hotlist_names_merged_buffers; struct t_config_option *config_look_hotlist_short_names; struct t_config_option *config_look_hotlist_sort; struct t_config_option *config_look_hotlist_unique_numbers; +struct t_config_option *config_look_input_cursor_scroll; struct t_config_option *config_look_input_share; struct t_config_option *config_look_input_share_overwrite; struct t_config_option *config_look_input_undo_max; @@ -1561,6 +1562,12 @@ config_weechat_init_options () N_("keep only unique numbers in hotlist (this applies only on hotlist " "items where name is NOT displayed after number)"), NULL, 0, 0, "on", NULL, 0, NULL, NULL, &config_change_buffer_content, NULL, NULL, NULL); + config_look_input_cursor_scroll = config_file_new_option ( + weechat_config_file, ptr_section, + "input_cursor_scroll", "integer", + N_("number of chars displayed after end of input line when scrolling " + "to display end of line"), + NULL, 0, 100, "20", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL); config_look_input_share = config_file_new_option ( weechat_config_file, ptr_section, "input_share", "integer", diff --git a/src/core/wee-config.h b/src/core/wee-config.h index baef06f04..9ab0df34a 100644 --- a/src/core/wee-config.h +++ b/src/core/wee-config.h @@ -122,6 +122,7 @@ extern struct t_config_option *config_look_hotlist_names_merged_buffers; extern struct t_config_option *config_look_hotlist_short_names; extern struct t_config_option *config_look_hotlist_sort; extern struct t_config_option *config_look_hotlist_unique_numbers; +extern struct t_config_option *config_look_input_cursor_scroll; extern struct t_config_option *config_look_input_share; extern struct t_config_option *config_look_input_share_overwrite; extern struct t_config_option *config_look_input_undo_max; diff --git a/src/gui/curses/gui-curses-bar-window.c b/src/gui/curses/gui-curses-bar-window.c index cd4408117..bf5f7c015 100644 --- a/src/gui/curses/gui-curses-bar-window.c +++ b/src/gui/curses/gui-curses-bar-window.c @@ -697,13 +697,12 @@ gui_bar_window_draw (struct t_gui_bar_window *bar_window, diff = length_screen_before_cursor - chars_available; if (diff > 0) { - /* - * FIXME: keep some spaces after end of input - * for example by adding something to diff, like: - * diff += (9 - (diff % 10)); - * but then scroll position has to be saved - * (in bar window ?) - */ + if (CONFIG_INTEGER(config_look_input_cursor_scroll) > 0) + { + diff += (CONFIG_INTEGER(config_look_input_cursor_scroll) + - 1 + - (diff % CONFIG_INTEGER(config_look_input_cursor_scroll))); + } /* compute new start for displaying input */ new_start_input = pos_after_start_input + gui_chat_string_real_pos (pos_after_start_input, diff); |