mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-05 05:02:02 +02:00
fake-editor: Prefix save message with an "s"
With this, we can distinguish "save" from "close" This fixes issue #160
This commit is contained in:
parent
751b3b24a3
commit
f4a1230e77
2 changed files with 8 additions and 5 deletions
scenes
|
@ -38,7 +38,8 @@ func save():
|
|||
if text.length() > 0 and text.substr(text.length()-1, 1) != "\n":
|
||||
text += "\n"
|
||||
|
||||
_client_connection.put_string(text)
|
||||
# Prefix with an 's' to say that this is a "save", not a "close".
|
||||
_client_connection.put_string("s" + text)
|
||||
|
||||
emit_signal("saved")
|
||||
close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue