Skip to content

Commit d3c692a

Browse files
authored
Change CommandLine type to ref type (#2282)
1 parent 75a0318 commit d3c692a

17 files changed

+265
-297
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. _#2282: https://github.com/fox0430/moe/pull/2282
2+
3+
Changed
4+
.......
5+
6+
- `#2282`_ Change CommandLine type to ref type
7+

src/moepkg/backup.nim

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#[###################### GNU General Public License 3.0 ######################]#
22
# #
3-
# Copyright (C) 2017─2023 Shuhei Nogawa #
3+
# Copyright (C) 2017─2025 Shuhei Nogawa #
44
# #
55
# This program is free software: you can redistribute it and/or modify #
66
# it under the terms of the GNU General Public License as published by #
@@ -167,7 +167,7 @@ proc backupBuffer*(
167167
bufStatus: BufferStatus,
168168
autoBackupSettings: AutoBackupSettings,
169169
notificationSettings: NotificationSettings,
170-
commandLine: var CommandLine,
170+
commandLine: CommandLine,
171171
) =
172172
if bufStatus.path.len == 0:
173173
return

src/moepkg/callhierarchyviewer.nim

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ proc jumpToDestination(status: var EditorStatus) =
182182
currentMainWindowNode.currentColumn = d.get.column
183183

184184
proc changeModeToExMode*(
185-
bufStatus: var BufferStatus, commandLine: var CommandLine
185+
bufStatus: var BufferStatus, commandLine: CommandLine
186186
) {.inline.} =
187187
bufStatus.changeMode(Mode.ex)
188188
commandLine.clear

0 commit comments

Comments
 (0)