diff options
author | Jacek Antonelli | 2008-08-15 23:44:58 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:58 -0500 |
commit | 089fc07d207c71ce1401e72f09c31ad8c45872e2 (patch) | |
tree | 0028955add042c6f45b47a7b774adeeac9c592cb /linden/indra/newview/llchatbar.cpp | |
parent | Second Life viewer sources 1.16.0.5 (diff) | |
download | meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.zip meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.gz meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.bz2 meta-impy-089fc07d207c71ce1401e72f09c31ad8c45872e2.tar.xz |
Second Life viewer sources 1.17.0.12
Diffstat (limited to 'linden/indra/newview/llchatbar.cpp')
-rw-r--r-- | linden/indra/newview/llchatbar.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linden/indra/newview/llchatbar.cpp b/linden/indra/newview/llchatbar.cpp index a6feac7..539c935 100644 --- a/linden/indra/newview/llchatbar.cpp +++ b/linden/indra/newview/llchatbar.cpp | |||
@@ -118,8 +118,8 @@ LLChatBar::LLChatBar(const std::string& name, const LLRect& rect) | |||
118 | mInputEditor->setRevertOnEsc( FALSE ); | 118 | mInputEditor->setRevertOnEsc( FALSE ); |
119 | mInputEditor->setIgnoreTab(TRUE); | 119 | mInputEditor->setIgnoreTab(TRUE); |
120 | mInputEditor->setPassDelete(TRUE); | 120 | mInputEditor->setPassDelete(TRUE); |
121 | |||
122 | mInputEditor->setMaxTextLength(1023); | 121 | mInputEditor->setMaxTextLength(1023); |
122 | mInputEditor->setEnableLineHistory(TRUE); | ||
123 | } | 123 | } |
124 | 124 | ||
125 | // Build the list of gestures | 125 | // Build the list of gestures |
@@ -446,6 +446,8 @@ void LLChatBar::sendChat( EChatType type ) | |||
446 | 446 | ||
447 | if (!text.empty()) | 447 | if (!text.empty()) |
448 | { | 448 | { |
449 | // store sent line in history, duplicates will get filtered | ||
450 | mInputEditor->updateHistory(); | ||
449 | // Check if this is destined for another channel | 451 | // Check if this is destined for another channel |
450 | S32 channel = 0; | 452 | S32 channel = 0; |
451 | stripChannelNumber(text, &channel); | 453 | stripChannelNumber(text, &channel); |