aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-08-31 17:48:00 +0200
committeriNPUTmice <daniel@gultsch.de>2014-08-31 17:48:00 +0200
commit28fa48704d4084617d7e32e4a10f785c4b996163 (patch)
tree1464629cfea64c9f1f2ec3ebd8d823ea13513e21 /src/eu/siacs
parent4793081c2c89c669241f7f4998d7c745e03f49e3 (diff)
add missing blank before nick
Diffstat (limited to 'src/eu/siacs')
-rw-r--r--src/eu/siacs/conversations/ui/ConversationFragment.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/ui/ConversationFragment.java b/src/eu/siacs/conversations/ui/ConversationFragment.java
index f4af72773..77049e560 100644
--- a/src/eu/siacs/conversations/ui/ConversationFragment.java
+++ b/src/eu/siacs/conversations/ui/ConversationFragment.java
@@ -290,6 +290,9 @@ public class ConversationFragment extends Fragment {
if (oldString.isEmpty() || mEditMessage.getSelectionStart() == 0) {
mEditMessage.getText().insert(0, nick + ": ");
} else {
+ if (mEditMessage.getText().charAt(mEditMessage.getSelectionStart()-1)!=' ') {
+ nick = " "+nick;
+ }
mEditMessage.getText().insert(mEditMessage.getSelectionStart(), nick + " ");
}
}