More work on transfer kitten porting

This commit is contained in:
Kovid Goyal
2023-05-31 20:18:53 +05:30
parent 5c786c96e1
commit ff3232547d
4 changed files with 268 additions and 13 deletions

View File

@@ -163,9 +163,9 @@ func safe_string(x string) string {
return safe_string_pat().ReplaceAllLiteralString(x, ``)
}
func (self *FileTransmissionCommand) Serialize(prefix_with_osc_code ...bool) string {
func (self FileTransmissionCommand) Serialize(prefix_with_osc_code ...bool) string {
ans := strings.Builder{}
v := reflect.ValueOf(*self)
v := reflect.ValueOf(self)
found := false
if len(prefix_with_osc_code) > 0 && prefix_with_osc_code[0] {
ans.WriteString(strconv.Itoa(kitty.FileTransferCode))