Skip to content

Commit 8d926e3

Browse files
Set history separator to <|SEP|>
1 parent d6bf55e commit 8d926e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

NppNavigateTo/Forms/FrmNavigateTo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ private void LoadSearchHistory()
116116
if (!string.IsNullOrEmpty(hist))
117117
{
118118
// items are stored as a pipe-separated list
119-
var items = hist.Split(new[] {'|'}, StringSplitOptions.RemoveEmptyEntries);
119+
var items = hist.Split(new [] {"<|SEP|>"}, StringSplitOptions.RemoveEmptyEntries);
120120
// insert in order so most recent is first
121121
foreach (var it in items)
122122
{
@@ -150,7 +150,7 @@ public void SaveSearchHistory()
150150
if (list.Count >= max) break;
151151
}
152152
// serialize as pipe-separated
153-
string serial = string.Join("|", list);
153+
string serial = string.Join("<|SEP|>", list);
154154
FrmSettings.Settings.SetSetting(Settings.searchHistory, serial);
155155
FrmSettings.Settings.SetIntSetting(Settings.searchHistoryLength, serial.Length);
156156
}

0 commit comments

Comments
 (0)